Closed hazzik closed 8 years ago
window.console
is undefined in IE 9 until debugger window is opened. It is not so modern browser, though.
Anyway IE still does not work at all
Ok, I've found alternative for [
: (Function("return arguments")+"")[0]
- works in every browser
Reopen this as we do not support IE anyway /cc @subzey @aemkei
This might be a dumb question, but is there a good reason [ ] ( ) and !
don't map to themselves?
@dxa4481 it's impossible, as we need a char code/string of these characters. Without quotes they are control characters, not string literals.
Superseded by #54
Using "console" instead of "{}"
Works in all current browsers and node.js
Also, "C" could be optimized used
(0+Function("return console")()["constructor"])[10]
. -- need adjustment for IE using workaround from #17