Don't use "char" as a parameter name.
On 9/13/16, 9:51 PM, "lizhi" <[email protected]> wrote:
>it is work,but the bytearray.as class use mxmlc work.
>
>and compc get error.
>'''
>set FLEX_HOME=d:/sdk/flexjs
>set main=SpriteFlexjsMain
>start %FLEX_HOME%/js/bin/compc %ARGS%
>-external-library-path="%FLEX_HOME%\js\libs\js.swc"
>-include-sources=../src
>-include-sources=src/%main%.as -define=CONFIG::as_only,false
>-define=CONFIG::js_only,true -output jsout
>java -jar %FLEX_HOME%\js\lib\google\closure-compiler\compiler.jar --js
>jsout
>'''
>
>'''
>jsout/flash/utils/ByteArray.js:186: ERROR - Parse error. identifier is a
>reserve
>d word
> var /** @type {Function} */ __localFn0__ = function(char) {
> ^
>
>jsout/flash/utils/ByteArray.js:187: ERROR - Parse error. identifier is a
>reserve
>d word
> return char.charCodeAt(0);
> ^
>'''
>
>what diffrent of mxmlc and compc?
>
>
>
>
>--
>View this message in context:
>http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-fold
>er-in-a-js-tp55085p55129.html
>Sent from the Apache Flex Development mailing list archive at Nabble.com.