mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-06-12 17:31:05 +00:00
22 lines
381 B
JavaScript
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();
|
|
|