// |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();