Apparently fixjsstyle unconditionally adds a semicolon after every function
definition, but this sometimes produces a syntax error, e.g.:
$ cat bug.js
var a = function() {},
b = 42;
$ node bug.js
$ fixjsstyle bug.js
Fixed 1 errors in /home/jelle/js/bug.js
$ cat bug.js
var a = function() {};,
b = 42;
$ node bug.js
/home/jelle/js/bug.js:1
on (exports, require, module, __filename, __dirname) { var a = function() {};,
^
SyntaxError: Unexpected token ,
What version of the product are you using? On what operating system?
closure-linter 2.3.13 on Ubuntu 12.04
Original issue reported on code.google.com by jelle.zi...@gmail.com on 22 Aug 2014 at 5:31
Original issue reported on code.google.com by
jelle.zi...@gmail.com
on 22 Aug 2014 at 5:31