threeapples307 / closure-linter

Automatically exported from code.google.com/p/closure-linter
Apache License 2.0
0 stars 0 forks source link

var x = {a: b;}; Unable to check the rest of file. Error "None" #80

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Put "var x = {a: b;};" into syntaxerror.js
2. gjslint syntaxerror.js

What is the expected output? What do you see instead?

Something like " '}' was expected and instead ';' was found "

It throws:

Line 2, E:-002: Error parsing file at token "<JavaScriptToken: 2, }, "}", {}, 
MetaData(None)>". Unable to check the rest of file.
Error "None"

What version of the product are you using? On what operating system?

no idea. i guess the last one.

Please provide any additional information below.

The line pointed in the error message is the last one on the file. It doesn't 
matter if there are more errors. It will not find them. I had to bisect the 
file to find the offending syntax.

Original issue reported on code.google.com by lgand...@gmail.com on 28 Mar 2014 at 11:31