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

var lfGlobal = newGlobal();
lfGlobal.offThreadCompileScript(`{ let x; throw 42; }`);
try {
    lfGlobal.runOffThreadScript();
} catch (e) {
}

lfGlobal.offThreadCompileScript(`function f() { { let x = 42; return x; } }`);
try {
    lfGlobal.runOffThreadScript();
} catch (e) {
}