Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Maybe. But it means the parser now needs to "make sense" of strings whereas before it was just skipping over them.


No 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: