又发现新问题,引擎自带的protobuf,微信跑不起来啊:
protobuf.js中的这句:
return Function.apply(null, keys.concat("return " + source)).apply(null, keys.map(function(key) { return scope[key]; })); // eslint-disable-line no-new-func
出来这个错误:
WAGame.js:3 gameThirdScriptError
Cannot read property 'apply' of undefined;at api readFile success callback function
TypeError: Cannot read property 'apply' of undefined
at Function.eof (http://127.0.0.1:53462/game/code.js:93141:69)
at Class (http://127.0.0.1:53462/game/code.js:93649:37)
at Type.get (http://127.0.0.1:53462/game/code.js:98613:48)
at Type.create (http://127.0.0.1:53462/game/code.js:98776:20)
at onAssetsLoaded (http://127.0.0.1:53462/game/code.js:102253:32)
at finish (http://127.0.0.1:53462/game/code.js:97544:9)
at process (http://127.0.0.1:53462/game/code.js:97572:13)
at http://127.0.0.1:53462/game/code.js:97630:17
at Laya.loader.load.Handler.create (http://127.0.0.1:53462/game/code.js:102231:13)
at Handler.__proto.runWith ([url]http://127.0.0.1:53462/game/code.js:711:59)[/url]
查看了应该是微信自带的浏览器内核不支持Function.apply