Quantcast
Channel: Cocos中文社区 - 最新帖子
Viewing all articles
Browse latest Browse all 495283

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

$
0
0

这是因为你的项目中使用了 Buffer。
Buffer 是 node.js 才有的,编译到 SpiderMonkey 前会由 browserify 提供 shim,buffer 的 shim 实现在 SpiderMonkey 中就会产生我前面说到的问题。总之,不要用 Buffer 就好。


Viewing all articles
Browse latest Browse all 495283

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>