aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-01-05 15:08:06 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-01-05 15:08:06 -0800
commitbbbb4835b42533ea9eec67b772b26fbbb1264efc (patch)
tree08429adede70113614deea81fa99c387406f9a04 /src/bun.js
parentf191993c8f78224f4e5661e1b9a3a195fe957651 (diff)
downloadbun-bbbb4835b42533ea9eec67b772b26fbbb1264efc.tar.gz
bun-bbbb4835b42533ea9eec67b772b26fbbb1264efc.tar.zst
bun-bbbb4835b42533ea9eec67b772b26fbbb1264efc.zip
always report rejected promises
Diffstat (limited to 'src/bun.js')
-rw-r--r--src/bun.js/event_loop.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bun.js/event_loop.zig b/src/bun.js/event_loop.zig
index c5927298a..6331480d8 100644
--- a/src/bun.js/event_loop.zig
+++ b/src/bun.js/event_loop.zig
@@ -489,7 +489,7 @@ pub const EventLoop = struct {
var global_vm = ctx.global.vm();
while (true) {
- while (this.tickWithCount() > 0) {
+ while (this.tickWithCount() > 0) : (this.global.handleRejectedPromises()) {
this.tickConcurrent();
} else {
global_vm.releaseWeakRefs();