admin管理员组文章数量:1320888
I'm trying to run a asm.js code in Firefox 29 but I get this warning from debugger console:
TypeError: asm.js type error: Disabled by debugger
Here is the code:
function boo() {
"use asm";
var result = 0;
for (var i = 0; i < 1000000000; i = (i + 1) | 0) {
var result = result + i | 0;
}
}
It seems the asm.js is disable when I work with it, How can I fix this issue?
I'm trying to run a asm.js code in Firefox 29 but I get this warning from debugger console:
TypeError: asm.js type error: Disabled by debugger
Here is the code:
function boo() {
"use asm";
var result = 0;
for (var i = 0; i < 1000000000; i = (i + 1) | 0) {
var result = result + i | 0;
}
}
It seems the asm.js is disable when I work with it, How can I fix this issue?
Share Improve this question asked May 4, 2014 at 7:24 Afshin MehrabaniAfshin Mehrabani 35k33 gold badges144 silver badges209 bronze badges1 Answer
Reset to default 6You can't. Asm.js optimizations aren't possible when the debugger is running. It will fallback to be executed as normal JS and can debugged that way. In which sense do you want to work with asm.js code?
本文标签: javascriptTypeError asmjs type error Disabled by debuggerStack Overflow
版权声明:本文标题:javascript - TypeError: asm.js type error: Disabled by debugger - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742006099a2411985.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论