tenfourfox/js/src/jit-test/tests/gc/bug1146213.js
2017-12-06 16:13:08 -08:00

22 lines
381 B
JavaScript

if (!("setGCCallback" in this &&
"schedulegc" in this &&
"gcslice" in this &&
"newGlobal" in this &&
"helperThreadCount" in this))
{
quit();
}
if (helperThreadCount() == 0)
quit();
setGCCallback({
action: "majorGC",
});
schedulegc(this)
gcslice(3)
var lfGlobal = newGlobal();
lfGlobal.offThreadCompileScript("");
lfGlobal.runOffThreadScript();