ajaxorg/ace — Issue #491: Ace not working in IE8
Author: jhchen
Created: 2011-11-03 04:41:38+00:00
State: open

An uncaught exception is thrown and presumably it cannot recover from it as the editor never loads. Happens in the kitchen sink editor too on ace.ajax.org:

SCRIPT5022: Exception thrown and not caught
kitchen-sink-uncompressed.js, line 2802 character 5

Catching and printing the exception just gives {message: ""}. It seems the line numbers are off as the offending line is actually (since if I comment it out things seem to work):

exports[name] = Function.prototype.bind.call(window.console[name], window.console);

Not exactly sure what it's trying to do here but based on the comments above it (// For each of the console functions, copy them if they exist, stub if not), why can't we just do this?

exports[name] = window.console[name];

Everything seems to work fine if I change it to this but not sure if the intent is preserved. Here's a link to a screenshot: http://dl.dropbox.com/u/796228/ace-screenshot.png