SebastianGlonner / closure-linter

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

FixJsStlye sometimes adds semicolons too aggressively (it breaks valid js) #60

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Take code below (1)
2. Run it through fixjsstyle.
3.

What is the expected output? What do you see instead?
The semicolon is not inserted.

What version of the product are you using? On what operating system?
Closure linter 2.3.7.

Please provide any additional information below.

(1) 
Code: 
var noOp = function() {},
a = 1;

(2)
Result after gjslint:
var noOp = function() {};,
a = 1;

Original issue reported on code.google.com by shalecr...@gmail.com on 18 Dec 2012 at 10:09

GoogleCodeExporter commented 9 years ago

Original comment by rum...@google.com on 15 Jan 2015 at 8:53