summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1338383.js
blob: 930566492d9daacb141fa1a76a53eaeeee96c25d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// |jit-test| error: InternalError

if (helperThreadCount() === 0)
    throw InternalError();

var lfOffThreadGlobal = newGlobal();
enableShellAllocationMetadataBuilder()
lfOffThreadGlobal.offThreadCompileToStencil(`
  if ("gczeal" in this)
    gczeal(8, 1)
  function recurse(x) {
    recurse(x + 1);
  };
  recurse(0);
`);
var stencil = lfOffThreadGlobal.finishOffThreadStencil();
lfOffThreadGlobal.evalStencil(stencil);