Closed Bug 897899 Opened 11 years ago Closed 11 years ago

In Chrome, console.log and console.warn need to be bound to the console object

Categories

(L20n :: HTML Bindings, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: stas, Unassigned)

Details

In Chrome, the following breaks because the warn function is not bound to the console object and we get  TypeError: Invalid invocation.

ctx.addEventListener('error', console.warn);
ctx.addEventListener('debug', console.error);
https://github.com/l20n/l20n.js/commit/7e85b2d37fb970d4d75b6666b473cbdcbe5df6ba
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.