-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
My-Library needs to "use strict" #8
Comments
although |
@WebReflection I think the directive can be useful though for avoiding malicious code that rely on eval or similar to override the Object or the Function constructor and act as a rootkit basically stealing informations, this applies only to a very little cases, when one can run js before your script (well actually even after in some cases), passing codes as a string. |
if it's about security, All I was trying to say is that, performance a part that could be slightly compromised and AFAIK this library is famous for being the fastest out there, there might be reasons to not use that directive. JSLint ain't a good reason to put everything under use strict. Then it's not my business, so I just read the tweet and commented as I felt ;-) Off this thread now, all the best |
Is there a jQuery plugin for |
Dimitar: Crockford knows JS, but not cross-browser scripting. Common sense says that the library does not need "use strict". |
Not using strict is contrary to best practice advice by Douglas Crockford and other people that seem to know JavaScript well.
🎃
The text was updated successfully, but these errors were encountered: