You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: 'log' called on an object that does not implement interface Console.
This used to be the behavior in Firefox, but it recently broke. I've filed a bug to revert to the old behavior where the methods were always bound to console, but figured we should codify this behavior here too.
Its kind of masochistic to force developers to bind every time they pass console.log as an argument!
The text was updated successfully, but these errors were encountered:
FWIW, your example works with Dragonfly (Opera 1.12.6) and Firebug (the latter binds the console methods to the console object). But it doesn't neither with Chrome DevTools.
Though I couldn't test with the WebInspector (if it differs from the Chrome DevTools) nor the IE DevTools.
I agree - I personally use this model all the time; for example, I'll often replace a callback function name with console.log during development (usually in Firebug). Writing a hand-off function is a big pain in the console. :)
👍 It's very convenient when you want to log the output of a callback .catch(console.error) or create a shortcut const log = console.log. This is also how it works in Node.js.
Expected Results:
logs 3 messages in the console
Actual Results:
Error: 'log' called on an object that does not implement interface Console.
This used to be the behavior in Firefox, but it recently broke. I've filed a bug to revert to the old behavior where the methods were always bound to console, but figured we should codify this behavior here too.
Its kind of masochistic to force developers to bind every time they pass
console.log
as an argument!The text was updated successfully, but these errors were encountered: