4 ms·
Why can all this new syntax be added, but the "use strict" pragma is still specified by a string? It made sense to send messages to the interpreter in a backwa
by thwarted 11y ago
Why can all this new syntax be added, but the "use strict" pragma is still specified by a string? It made sense to send messages to the interpreter in a backwards compatible way, but now it just seems odd.
- nodesocket 11y agoNot entirely sure if browsers require "use strict;", but io.js (node) does.
- silverwind 11y agoIn iojs/node, you can force v8 strict mode through the --use_strict flag, saving you from writing in every file.
- v413 11y agoAll code in modules is in the context of "use strict" by default so it won't be necessary to use this pragma explicitly.