Adapt JS API to ESR 140

This commit is contained in:
Itms
2025-09-03 12:03:53 +02:00
parent 3d5c59f2c9
commit edff153f73
8 changed files with 14 additions and 11 deletions
+1 -1
View File
@@ -257,7 +257,7 @@ void Context::MaybeIncrementalGC()
#endif
// There is a tradeoff between this time and the number of frames we must run GCs on, but overall we should prioritize smooth framerates.
const js::SliceBudget GCSliceTimeBudget = js::SliceBudget(js::TimeBudget(6)); // Milliseconds an incremental slice is allowed to run. SM respects this fairly well.
const JS::SliceBudget GCSliceTimeBudget = JS::SliceBudget(JS::TimeBudget(6)); // Milliseconds an incremental slice is allowed to run. SM respects this fairly well.
PrepareZonesForIncrementalGC();
if (!JS::IsIncrementalGCInProgress(m_cx))