Closed stodge closed 10 years ago
What's your input Javascript source?
I think I found it, I have code similar to this:
someFunction({ id: 'fred', class: 'something'});
Which I changed to:
someFunction({ 'id': 'fred', 'class': 'something'});
That makes sense now, but I couldn't identify the error from slimit's output. Thanks
I had same issus
the file is a angularjs file upload's lib. and it's work fine when using Nodejs's minify (grunt plugin).
I believe it is slimit's bug.
I'm getting a syntax error from my javascript:
Unexpected token (SEMI, ';') at 1:1298 between LexToken(LINE_TERMINATOR,'\n',1,1295) and LexToken(CLASS,'class',1,1298)
It makes no sense - line number is 1 and the file doesn't contain the keyword "class" anywhere. jslint doesn't complain about anything in this file.
Any ideas how to identify what's causing this error? Thanks