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") stuff undefined console.info.call(this, "stuff") TypeError: Illegal invocation console.info.call(console, "stuff") stuff undefined
This behavior is expected.