blob: b0097962220b2838fec4af606007a567ae5fbe73 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// |jit-test| skip-if: helperThreadCount() === 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) {
}
|