TypeError: Illegal Invocation on console.log.apply TypeError: Illegal Invocation on console.log.apply google-chrome google-chrome

TypeError: Illegal Invocation on console.log.apply


It may not work in cases when execution context changed from console to any other object:

This is expected because console.info expects its "this" reference to be console, not window.

console.info("stuff")stuffundefinedconsole.info.call(this, "stuff")TypeError: Illegal invocationconsole.info.call(console, "stuff")stuffundefined

This behavior is expected.

https://bugs.chromium.org/p/chromium/issues/detail?id=48662