We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Will get a TypeError accessing undefined if you type the following Javascript code:
for (const)
The console shows this message:
/Users/user1/.atom/packages/linter/lib/linter-registry.js:154 [Linter] Error running JSHint Error: /Users/user1/.atom/packages/linter-jshint/node_modules/jshint/src/jshint.js:6534 throw err; ^ TypeError: Cannot read property 'value' of undefined at Object.fud (/Users/user1/.atom/packages/linter-jshint/node_modules/jshint/src/jshint.js:5224)
The text was updated successfully, but these errors were encountered:
Fixes jshint#3455
2916d01
Only issue error E012 if a variable name has been given in the for-loop
Crash confirmed, though the failure conditions are slightly different than reported (note the semicolon):
$ echo 'for(const;)' | ./bin/jshint - ./src/jshint.js:6534 throw err; ^ TypeError: Cannot read property 'value' of undefined
Sorry, something went wrong.
interesting - I didn't need the semicolon to see the crash within the Atom editor (using linter-jshint), but either way it's a crash.
add test for jshint#3455 case
b7f6728
8884eb9
[[FIX]] TypeError accessing 'value' of undefined
697bd9d
Make sure that 'decl.first[0]' is defined before accessing its 'value' attribute. No breaking changes. Fixes jshint#3455
No branches or pull requests
Will get a TypeError accessing undefined if you type the following Javascript code:
The console shows this message:
The text was updated successfully, but these errors were encountered: