Debian Codegraph @

js/src/jit-test/tests/bug1213574.js

raw
1 // |jit-test| skip-if: helperThreadCount() === 0
2
3 var lfGlobal = newGlobal();
4 lfGlobal.offThreadCompileToStencil(`{ let x; throw 42; }`);
5 var stencil = lfGlobal.finishOffThreadStencil();
6 try {
7 lfGlobal.evalStencil(stencil);
8 } catch (e) {
9 }
10
11 lfGlobal.offThreadCompileToStencil(`function f() { { let x = 42; return x; } }`);
12 stencil = lfGlobal.finishOffThreadStencil();
13 try {
14 lfGlobal.evalStencil(stencil);
15 } catch (e) {
16 }