summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1294241.js
blob: 62c1acf62e0ba98c60395235d6fd1eca72d2de1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
if (helperThreadCount() == 0)
    quit();

ignoreUnhandledRejections();

gczeal(9);
function rejectionTracker(state) {}
setPromiseRejectionTrackerCallback(rejectionTracker)
  lfGlobal = newGlobal();
offThreadCompileToStencil(`new Promise(()=>rej)`);
var stencil = lfGlobal.finishOffThreadStencil();
lfGlobal.evalStencil(stencil);
for (lfLocal in this);