Revert "workaround of microtask cleanup to prevent a crash"

This reverts commit c75d50adde.
This commit is contained in:
roytam1 2024-01-18 10:16:55 +08:00
commit 500c2ab8d9

View file

@ -1477,10 +1477,8 @@ 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
CycleCollectedJSContext::RecursionDepth() CycleCollectedJSContext::RecursionDepth()