summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/evalInWorker-stack-limit.js
blob: c1a1f472f1d47ca1a3e81aa9960ea96ec8472104 (plain)
1
2
3
4
5
6
7
8
try {
    evalInWorker(`
        function f() { f(); }
        try { f(); } catch(e) {}
    `);
} catch(e) {
    assertEq(e.toString().includes("--no-threads"), true);
}