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

runOffThreadScript(offThreadCompileScript(`
    function asmModule() {
        "use asm";
        function f() {
            while(1) {
            }
        }
        return f;
    }
`));
timeout(1);
asmModule()();
assertEq(true, false);