If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

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

RESOLVED FIXED

Status

L20n
HTML Bindings
RESOLVED FIXED
4 years ago
4 years ago

People

(Reporter: stas, Unassigned)

Tracking

Details

(Reporter)

Description

4 years ago
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);
(Reporter)

Comment 1

4 years ago
https://github.com/l20n/l20n.js/commit/7e85b2d37fb970d4d75b6666b473cbdcbe5df6ba
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.