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

var lfGlobal = newGlobal();
lfGlobal.offThreadCompileToStencil(`{ let x; throw 42; }`);
var stencil = lfGlobal.finishOffThreadStencil();
try {
    lfGlobal.evalStencil(stencil);
} catch (e) {
}

lfGlobal.offThreadCompileToStencil(`function f() { { let x = 42; return x; } }`);
stencil = lfGlobal.finishOffThreadStencil();
try {
    lfGlobal.evalStencil(stencil);
} catch (e) {
}