workaround of microtask cleanup to prevent a crash

This commit is contained in:
roytam1 2024-01-13 21:03:58 +08:00
commit c75d50adde

View file

@ -1477,7 +1477,9 @@ CycleCollectedJSContext::AfterProcessMicrotasks()
}
// Cleanup Indexed Database transactions:
// https://html.spec.whatwg.org/multipage/webappapis.html#perform-a-microtask-checkpoint
CleanupIDBTransactions(RecursionDepth());
if(!mPendingIDBTransactions.IsEmpty()) {
CleanupIDBTransactions(RecursionDepth());
}
}
uint32_t