-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
lack of "use strict" directive doesn't always warn #2668
Labels
Comments
lukeapage
changed the title
lack of "use struct" directive doesn't always warn
lack of "use strict" directive doesn't always warn
Sep 7, 2015
Another test case: // jshint strict: global
a + b; |
JSHint doesn't warn if the statement is a function or a punctuator ( |
nicolo-ribaudo
added a commit
to nicolo-ribaudo/jshint
that referenced
this issue
Sep 11, 2015
jugglinmike
added a commit
to jugglinmike/jshint
that referenced
this issue
Sep 12, 2015
jugglinmike
pushed a commit
to jugglinmike/jshint
that referenced
this issue
Sep 20, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This code:
(or its 2.9.x + equivalent)
both do not warn about missing a
"use strict"
directive.I'm guessing only very short code files suffer this problem (or this would be a big problem) but it requires investigation.
Found during investigation of #2663
The text was updated successfully, but these errors were encountered: