mirror of
https://github.com/oven-sh/bun
synced 2026-02-17 14:22:01 +00:00
drain
This commit is contained in:
@@ -267,9 +267,9 @@ void MessagePort::processMessageBatch(ScriptExecutionContext& context, Vector<Me
|
||||
scope.clearExceptionExceptTermination();
|
||||
}
|
||||
|
||||
// if (Zig::GlobalObject::scriptExecutionStatus(globalObject, globalObject) == ScriptExecutionStatus::Running) {
|
||||
if (Zig::GlobalObject::scriptExecutionStatus(globalObject, globalObject) == ScriptExecutionStatus::Running) {
|
||||
globalObject->drainMicrotasks();
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
if (messageCount > maxMessagesPerTick) {
|
||||
|
||||
Reference in New Issue
Block a user