最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - TypeError: asm.js type error: Disabled by debugger - Stack Overflow

programmeradmin1浏览0评论

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 badges
Add a ment  | 

1 Answer 1

Reset to default 6

You 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?

发布评论

评论列表(0)

  1. 暂无评论