diff options
Diffstat (limited to 'src/bun_js.zig')
-rw-r--r-- | src/bun_js.zig | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bun_js.zig b/src/bun_js.zig index 3a9f74ffe..37e1e240a 100644 --- a/src/bun_js.zig +++ b/src/bun_js.zig @@ -109,9 +109,11 @@ pub const Run = struct { Output.flush(); } + this.vm.tick(); + { var i: usize = 0; - while (this.vm.*.event_loop.pending_tasks_count.loadUnchecked() > 0 or this.vm.timer.active > 0) { + while (this.vm.*.event_loop.pending_tasks_count.loadUnchecked() > 0 or this.vm.active_tasks > 0) { this.vm.tick(); i +%= 1; |