Make WeakRef support always enabled

This commit is contained in:
Basilisk-Dev
2026-05-10 11:47:18 -04:00
committed by roytam1
parent a02580dae4
commit 6861bedff6
15 changed files with 244 additions and 56 deletions
+4
View File
@@ -1479,6 +1479,8 @@ CycleCollectedJSContext::AfterProcessTask(uint32_t aRecursionDepth)
// Step 4.2 Execute any events that were waiting for a stable state.
ProcessStableStateQueue();
JS::ClearWeakRefKeptObjects(mJSContext);
}
void
@@ -1517,6 +1519,8 @@ CycleCollectedJSContext::AfterProcessMicrotasks()
});
RunInStableState(cleanupRunnable.forget());
};
JS::ClearWeakRefKeptObjects(mJSContext);
}
uint32_t