Using the latest release of yuicompressor fails.

blake@blake-ubnt-laptop:/tmp$ java -jar yuicompressor-2.4.8.jar angular.js -o 
angular.min.js
[ERROR] in angular.js
  237:11:identifier is a reserved word
[ERROR] in angular.js
  237:21:illegal character
[ERROR] in angular.js
  237:23:syntax error
[ERROR] in angular.js
  239:13:identifier is a reserved word
[ERROR] in angular.js
  239:24:illegal character
[ERROR] in angular.js
  239:26:syntax error
[ERROR] in angular.js
  239:34:illegal character
[ERROR] in angular.js
  239:34:syntax error
[ERROR] in angular.js
  419:13:missing ( before function parameters.
[ERROR] in angular.js
  419:13:missing } after function body
[ERROR] in angular.js
  421:1:syntax error
[ERROR] in angular.js
  424:33:missing ; before statement
[ERROR] in angular.js
  426:1:syntax error
[ERROR] in angular.js
  443:17:missing ; before statement
[ERROR] in angular.js
  444:6:syntax error
[ERROR] in angular.js
  8547:14:invalid property id
[ERROR] in angular.js
  8547:15:syntax error
[ERROR] in angular.js
  8548:18:syntax error
[ERROR] in angular.js
  8549:18:syntax error
[ERROR] in angular.js
  8550:20:syntax error
[ERROR] in angular.js
  8551:19:syntax error
[ERROR] in angular.js
  8552:20:syntax error
[ERROR] in angular.js
  8553:19:syntax error
[ERROR] in angular.js
  8554:8:syntax error
[ERROR] in angular.js
  8556:17:syntax error
[ERROR] in angular.js
  8557:24:missing ; before statement
[ERROR] in angular.js
  8562:5:syntax error
[ERROR] in angular.js
  8563:3:syntax error
[ERROR] in angular.js
  8564:1:syntax error
[ERROR] in angular.js
  8593:27:identifier is a reserved word
[ERROR] in angular.js
  13487:14:identifier is a reserved word
[ERROR] in angular.js
  13487:27:illegal character
[ERROR] in angular.js
  13487:29:syntax error
[ERROR] in angular.js
  13488:16:syntax error
[ERROR] in angular.js
  13489:19:syntax error
[ERROR] in angular.js
  13490:23:syntax error
[ERROR] in angular.js
  13491:21:syntax error
[ERROR] in angular.js
  13492:22:syntax error
[ERROR] in angular.js
  13493:20:syntax error
[ERROR] in angular.js
  13494:22:syntax error
[ERROR] in angular.js
  13495:21:syntax error
[ERROR] in angular.js
  14495:21:identifier is a reserved word
[ERROR] in angular.js
  14496:20:identifier is a reserved word
[ERROR] in angular.js
  14498:32:identifier is a reserved word
[ERROR] in angular.js
  14499:18:identifier is a reserved word
[ERROR] in angular.js
  14500:18:identifier is a reserved word
[ERROR] in angular.js
  14501:18:identifier is a reserved word
[ERROR] in angular.js
  14519:19:identifier is a reserved word
[ERROR] in angular.js
  14684:16:identifier is a reserved word
[ERROR] in angular.js
  16196:24:identifier is a reserved word
[ERROR] in angular.js
  16207:24:identifier is a reserved word
[ERROR] in angular.js
  20762:1:syntax error
[ERROR] in angular.js
  1:0:Compilation produced 52 syntax errors.
org.mozilla.javascript.EvaluatorException: Compilation produced 52 syntax 
errors.
        at 
com.yahoo.platform.yui.compressor.YUICompressor$1.runtimeError(YUICompressor.java:172)
        at org.mozilla.javascript.Parser.parse(Parser.java:396)
        at org.mozilla.javascript.Parser.parse(Parser.java:340)
        at 
com.yahoo.platform.yui.compressor.JavaScriptCompressor.parse(JavaScriptCompressor.java:315)
        at 
com.yahoo.platform.yui.compressor.JavaScriptCompressor.<init>(JavaScriptCompressor.java:536)
        at 
com.yahoo.platform.yui.compressor.YUICompressor.main(YUICompressor.java:147)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at com.yahoo.platform.yui.compressor.Bootstrap.main(Bootstrap.java:21)

I also tested this with the latest AngularJS 1.3.12 and get the same
result. Compression of Angular works with slimit and uglify, also tested
against many browsers, so only yuicompressor believes it is invalid
javascript.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1415164

Title:
  [MIR] slimit

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/slimit/+bug/1415164/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to