3 ms·
Maybe. But it means the parser now needs to "make sense" of strings whereas before it was just skipping over them.
by chx 12y ago
Maybe. But it means the parser now needs to "make sense" of strings whereas before it was just skipping over them.
- function_seven 12y agoNo it doesn't. The "use strict" declaration must occur before any other statements, allowing the parser to look specifically for those bytes, and treat it as a separate token instead of as a string. It doesn't have to inspect the contents of all strings.