Skip to content
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

Crash on syntax error #818

Closed
Wilfred opened this issue Jan 18, 2013 · 0 comments
Closed

Crash on syntax error #818

Wilfred opened this issue Jan 18, 2013 · 0 comments
Milestone

Comments

@Wilfred
Copy link

Wilfred commented Jan 18, 2013

Only occurs on 1.0.0-rc3.

if (productAvailabilityMs < ) {

}

Gives the traceback:

$ jshint crash_jshint.js                                                                     [15:20:30]

/usr/lib/node_modules/jshint/src/stable/jshint.js:3544
                                throw err;
                                      ^
TypeError: Cannot read property 'id' of undefined
    at Object.x.led (/usr/lib/node_modules/jshint/src/stable/jshint.js:1117:13)
    at expression (/usr/lib/node_modules/jshint/src/stable/jshint.js:810:31)
    at Object.oldScope [as fud] (/usr/lib/node_modules/jshint/src/stable/jshint.js:2655:3)
    at expression (/usr/lib/node_modules/jshint/src/stable/jshint.js:769:29)
    at statement (/usr/lib/node_modules/jshint/src/stable/jshint.js:1361:7)
    at statements (/usr/lib/node_modules/jshint/src/stable/jshint.js:1414:12)
    at itself (/usr/lib/node_modules/jshint/src/stable/jshint.js:3403:5)
    at lint (/usr/lib/node_modules/jshint/src/cli/cli.js:272:7)
    at exports.run.verbose (/usr/lib/node_modules/jshint/src/cli/cli.js:315:4)
    at Array.forEach (native)
jugglinmike pushed a commit to jugglinmike/jshint that referenced this issue Oct 21, 2014
danielctull pushed a commit to danielctull-forks/jshint that referenced this issue Jan 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants