Closed endel closed 9 years ago
Here is the problem in a diff, one is the output using the plugin and the other is not.
$ diff js_working/app.js js/app.js
93a94,95
> "use strict";
>
96,98c98
< var test = function() {
< // same thing
< }
---
> var test = function test() {};
100c100
< });
---
> // same thing});
Should be fixed in 5.0.1
When you have a JavaScript block without implementation, just with comments, the "unexpected end of input" errors starts to appear.
It happens for any statement, even a function:
Screenshot: