类似这种错误说是ES6 语法,问题是该怎么排查呢?

Simulator: 17193:mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create
at a (\client\library\bundle.project.js?009:NaN:0)

[quote=“jare, post:44, topic:35510, full:true”]
Q: 真机或模拟器运行时报错:“Mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create”A: 这是由于某些第三方库,或者项目中用到了 ES2015(ES6)的类继承语法,而 Babel 在转义这个语法时会调用到 SpiderMonkey 不太优化 API,所以 SpiderMonkey 给出了这个报错。
[/quote] 

排查的话,全局搜索一下__proto__看看哪里修改了

socket.io.js ??

      if ((members.__proto__ = null, members.__proto__ = {
      if ((members.__proto__ = null, members.__proto__ = {
          var original = this.__proto__, result = property in (this.__proto__ = null, this);
          var original = this.__proto__, result = property in (this.__proto__ = null, this);
          this.__proto__ = original;

问题是一开始就使用的文件???

把 socket.io.js 设置为插件脚本,然后去掉 “原生平台” 的勾勾,这样模拟器就不会有这个报错了