Debian Codegraph @

js/src/jit-test/tests/gc/bug-1338383.js

raw
1 // |jit-test| error: InternalError
2
3 if (helperThreadCount() === 0)
4 throw InternalError();
5
6 var lfOffThreadGlobal = newGlobal();
7 enableShellAllocationMetadataBuilder()
8 lfOffThreadGlobal.offThreadCompileToStencil(`
9 if ("gczeal" in this)
10 gczeal(8, 1)
11 function recurse(x) {
12 recurse(x + 1);
13 };
14 recurse(0);
15 `);
16 var stencil = lfOffThreadGlobal.finishOffThreadStencil();
17 lfOffThreadGlobal.evalStencil(stencil);