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: // Cleanup Indexed Database transactions:
// https://html.spec.whatwg.org/multipage/webappapis.html#perform-a-microtask-checkpoint // https://html.spec.whatwg.org/multipage/webappapis.html#perform-a-microtask-checkpoint
if(!mPendingIDBTransactions.IsEmpty()) {
CleanupIDBTransactions(RecursionDepth()); CleanupIDBTransactions(RecursionDepth());
}
} }
uint32_t uint32_t