-
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]] Relax restriction on asgnmnt to arguments
Previously, JSHint issued E031 ("Bad assignment.") when it encountered assignment to a mapped `arguments` object. Not only is this message vague, its implementation as an error incorrectly disallows syntactically valid JavaScript. Introduce a new warning which more clearly describes the rationale, and emit the new warning in place of the existing error so that users may opt out. Although this change causes changes in messages reported by JSHint, it is backwards-compatible because the prior behavior was implemented in terms of an error. Existing users are therefore not reliant on the prior message or code.
- Loading branch information
1 parent
3aa02db
commit 0a66710
Showing
4 changed files
with
10 additions
and
51 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
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