summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/asm.js/testBug1255954.js
blob: 2e1d38de12a37765b5e7af8bb10c5f7078d9bde6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// |jit-test| slow

const USE_ASM = '"use asm";';
function asmCompile() {
    var f = Function.apply(null, arguments);
}
oomTest(() => {
    try {
        function f(b) {}
    } catch (exc0) {}
    f(asmCompile(USE_ASM + "function f() { var i=42; return i|0; for(;1;) {} return 0 } return f"));
});