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

gczeal(9);
function rejectionTracker(state) {}
setPromiseRejectionTrackerCallback(rejectionTracker)
  lfGlobal = newGlobal();
offThreadCompileScript(`new Promise(()=>rej)`);
lfGlobal.runOffThreadScript();
for (lfLocal in this);