summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/asm.js/testTimeout7.js
blob: 10fcb71d1ae0bf9f4c2fb6af79f488a6333d6d5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// |jit-test| exitstatus: 6; skip-if: helperThreadCount() == 0

var job = offThreadCompileToStencil(`
    function asmModule() {
        "use asm";
        function f() {
            while(1) {
            }
        }
        return f;
    }
`);
var stencil = finishOffThreadStencil(job);
evalStencil(stencil);
timeout(1);
asmModule()();
assertEq(true, false);