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 :(
I think (but can't find the code to prove it) that DevTools only installs the debug function on the global object once you open it. So a <script> run after the console has been opened would see window.debug. Haven't confirmed that though
-
-
I don't think thats true, see https://jsfiddle.net/ua5rsjek/ and log from REPL before/after the <script>
-
Even more fun, `window.debug = window.debug` will make the function available outside the REPL as some sort of odd proxy trap going on.pic.twitter.com/2N1raEzwqc
- 5 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.