TypeError: error like asm.js: disabled by the debugger

I try to run asm.js code in Firefox 29, but I get this warning from the 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;
    }
}

Asm.js seems to shut down when I work with it. How can I fix this problem?

+4
source share
1 answer

You can not. Asm.js optimization is not possible when starting the debugger. This will be a reserve that will run like regular JS and can be debugged this way. In what sense do you want to work with asm.js code?

+3
source

Source: https://habr.com/ru/post/1539152/


All Articles