Ticket #2528011 (closed defect)

Reporter


nooneeverknows
Opened: 11/16/09
Last modified: 12/12/12
Status: closed
Type: defect
Resolution: wontfix

Owner


Adam Moore
Target Release:
Priority:
Summary: EvaluatorException while processing js file
Description:

Using java -jar util/yuicompressor-2.4.2.jar --charset UTF-8 -o lib/iphone/phonegap-min.js lib/iphone/phonegap.js the following Errors are thrown :

{ { {
[ERROR] 1102:9:missing ; before statement

[ERROR] 1103:14:syntax error

[ERROR] 1104:1:syntax error

[ERROR] 1213:14:missing ; before statement

[ERROR] 1214:11:syntax error

[ERROR] 1215:1:syntax error

[ERROR] 1:0:Compilation produced 6 syntax errors.
org.mozilla.javascript.EvaluatorException: Compilation produced 6 syntax errors.
at com.yahoo.platform.yui.compressor.YUICompressor$1.runtimeError(YUICompressor.java:135)
at org.mozilla.javascript.Parser.parse(Parser.java:410)
at org.mozilla.javascript.Parser.parse(Parser.java:355)
at com.yahoo.platform.yui.compressor.JavaScriptCompressor.parse(JavaScriptCompressor.java:312)
at com.yahoo.platform.yui.compressor.JavaScriptCompressor.<init>(JavaScriptCompressor.java:533)
at com.yahoo.platform.yui.compressor.YUICompressor.main(YUICompressor.java:112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at com.yahoo.platform.yui.compressor.Bootstrap.main(Bootstrap.java:20)
} } }

Type: defect Observed in Version: 2.4.2
Component: YUICompressor Severity: S3 (normal)
Assigned To: Adam Moore Target Release:
Location: Priority:
Tags: Relates To:
Browsers: N/A
URL:
Test Information:

Attachments

Attachment #1: phonegap.js (download)

Change History

David Roderick

Posted: 12/1/09

The problem is that there are two places in the file where the end of a function is
}Startofnewfunction.

Should be

}

Startofnewfunction

David Roderick

Posted: 12/1/09

The problem is that there are two places in the file where the end of a function is
}Startofnewfunction.

Should be

}

Startofnewfunction

The file you posted does not tally with line numbers. An incorrect file?

George

YUI Developer

Posted: 01/30/10

Jenny Donnelly

YUI Developer

Posted: 12/12/12
  • resolution changed to wontfix
  • status changed from assigned to closed

Thank you for your bug report. We are deprecating YUI Compressor in favor of yuglify. Please see our announcement for more information: http://www.yuiblog.com/blog/2012/10/16/state-of-yui-compressor/. We will consider migrating these legacy tickets to GitHub if there are community maintainers willing to step up and own them.