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 :(
-
-
Wouldn’t that become a nightmare if you have strict and sloppy code in the same project ?
-
The toggle should only apply to the console repl. Toggled on would be the same as repeating 'use strict' in every command. Similar to what sticky in the poll does, however, it would be easier to disable sticky strict by a toggle than having to reopen dev tools or reload page.
- Još 2 druga odgovora
Novi razgovor -
-
-
This!!! I strongly recommend a toggle
-
Does writing 'use strict' change the toggle?
- Još 1 odgovor
Novi razgovor -
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.