greenlaw110 / greenscript

A tool help web developers manage javascript/css rendering, including minimize and dependence management
42 stars 24 forks source link

Parse error. Internet Explorer has a non-standard intepretation of trailing commas #64

Open xael-fry opened 10 years ago

xael-fry commented 10 years ago

cf discussion https://groups.google.com/forum/#!msg/play-framework/6xNatU8-89o/KQAgGt0HrT4J

Jun 4, 2012 5:52:03 PM com.google.javascript.jscomp.LoggerErrorManager println
WARNING: greenscript.js:1: WARNING - Parse error. Non-JSDoc comment has annotations. Did you mean to start it with '/**'?
/*
^

Jun 4, 2012 5:52:03 PM com.google.javascript.jscomp.LoggerErrorManager println
SEVERE: greenscript.js:108: ERROR - Parse error. Internet Explorer has a non-standard intepretation of trailing commas. Arrays will have the wrong length and objects will not parse at all.
};
 ^

WARN  ~ error compress resource L=[Minimizer] 
java.lang.Exception: error compile javascript
at com.greenscriptool.utils.ClosureCompressor.compress(ClosureCompressor.java:49)
at com.greenscriptool.Minimizer.compress(Minimizer.java:425)
at com.greenscriptool.Minimizer.processStatic(Minimizer.java:488)
at play.modules.greenscript.GreenScriptPlugin.processStatic_(GreenScriptPlugin.java:414)
at play.modules.greenscript.GreenScriptPlugin.serveStatic(GreenScriptPlugin.java:321)
at play.plugins.PluginCollection.serveStatic(PluginCollection.java:641)
at play.server.PlayHandler.serveStatic(PlayHandler.java:849)
at play.server.PlayHandler$NettyInvocation.init(PlayHandler.java:188)
at play.Invoker$Invocation.run(Invoker.java:276)
at play.server.PlayHandler$NettyInvocation.run(PlayHandler.java:235)