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

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

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