tick immediate tasks to process MessagePort postMessage stuff

This commit is contained in:
Alistair Smith
2025-06-02 14:53:56 -07:00
parent d94996bf68
commit 2ce5b9eab7
2 changed files with 1 additions and 0 deletions

View File

@@ -479,6 +479,7 @@ pub fn tick(this: *EventLoop) void {
while (true) {
while (this.tickWithCount(ctx) > 0) : (this.global.handleRejectedPromises()) {
this.tickConcurrent();
this.tickImmediateTasks(ctx);
} else {
this.drainMicrotasksWithGlobal(global, global_vm) catch return;
if (scope.hasException()) return;