Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[[FIX]] Improve numeric literal warnings/errors
Previously, JSHint issued the warning W045 in response to invalid numeric literals and numeric literals which could not be represented with the JavaScript "number" type. (The existing code comment which claims otherwise is erroneous.) While the warning's message was generic enough to describe both cases ("Bad number"), the dual usage undermined JSHint's distinction between "errors" and "warnings." Create a new error to describe the invalid syntax and emit it as appropriate. Reword the existing warning to more precisely describe the likely programming error it reflects.
- Loading branch information
1 parent
cd3fda0
commit 370e159
Showing
5 changed files
with
20 additions
and
20 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
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