使用命令 cocos jscompile -s frameworks/js-bindings/bindings/script -c -d target 编译cocos自带的js文件,直接报如下错误
frameworks/js-bindings/bindings/script/3d/jsb_cocos2d_3d.js:43: ERROR - Parse error. Internet Explorer has a non-standard intepretation of trailing commas. Arrays w$
};
^
frameworks/js-bindings/bindings/script/3d/jsb_cocos2d_3d.js:62: ERROR - Parse error. Internet Explorer has a non-standard intepretation of trailing commas. Arrays w$
};
^
frameworks/js-bindings/bindings/script/3d/jsb_cocos2d_3d.js:88: ERROR - Parse error. missing ) after formal parameters
cc.math.Vec3 = function(x=0, y=0, z=0){
^
frameworks/js-bindings/bindings/script/3d/jsb_cocos2d_3d.js:89: ERROR - Parse error. syntax error
this.x = x;
^
frameworks/js-bindings/bindings/script/3d/jsb_cocos2d_3d.js:92: ERROR - Parse error. syntax error
没有 -c 参数,可以编译出很多jsc文件。我现在想编译一个大文件,就报了如上的错误。看了一下python文件,似乎是compiler.jar有问题,无法把js文件合在一起。有人有解决办法吗?
