mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 03:48:56 +00:00
tick immediate tasks to process MessagePort postMessage stuff
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user