diff --git a/src/bun.js/event_loop.zig b/src/bun.js/event_loop.zig index 80259c212f..c6a3c1099e 100644 --- a/src/bun.js/event_loop.zig +++ b/src/bun.js/event_loop.zig @@ -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; diff --git a/test/js/web/workers/message-port-immediate-cpp-tasks.test.ts b/test/js/web/workers/message-port-lifecycle.test.ts similarity index 100% rename from test/js/web/workers/message-port-immediate-cpp-tasks.test.ts rename to test/js/web/workers/message-port-lifecycle.test.ts