closure-linter icon indicating copy to clipboard operation
closure-linter copied to clipboard

Catch syntax error - dot-prefixed variable usage

Open GoogleCodeExporter opened this issue 10 years ago • 0 comments

What steps will reproduce the problem?
1. echo 'var b = 1; var a = .b;' > test.js
2. gjslint test.js


What is the expected output?

Syntax error should be reported. The `.b` is invalid and causes an error in 
browsers (tested with Chrome 23.0.1271.95)


What do you see instead?

    `1 files checked, no errors found.`



gjslint 2.3.7 on Ubuntu 12.10

Original issue reported on code.google.com by [email protected] on 3 Dec 2012 at 10:44

GoogleCodeExporter avatar Jun 17 '15 06:06 GoogleCodeExporter