Accidentally invented a new feature. Should the JS console/REPL in DevTools stay in strict mode (for later evaluations) if you set it once? It doesn't currently :(
Not sure what you mean - this still prints the debug object: "use strict"; (0, eval)('console.log(debug)') Or do you mean something else?
-
-
thats surprising, since indirect eval should be in the global scope and the REPL shouldn't have a different global scope from the page?
-
In which today I learn the Chrome REPL is doing something really weird with the globals (window.debug in <script> is undefined, in REPL and associated things created in REPL is a fn)
- 8 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.