-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[[FIX]] Do not create binding for illegal syntax
When a function declaration without an identifier is encountered, JSHint issues a warning and attempts to continue parsing the declaration. Previously, JSHint created a new binding for the "function" keyword, and because such a binding can never be referenced, this would generate spurious warnings when the "unused" option was enabled. Do not create a faulty binding in the presence of this syntax error.
- Loading branch information
1 parent
a5ff715
commit 9fe8c94
Showing
2 changed files
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters