mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
always report rejected promises
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -180,6 +180,8 @@ pub const Run = struct {
|
||||
}
|
||||
}
|
||||
|
||||
this.vm.global.handleRejectedPromises();
|
||||
|
||||
this.vm.onExit();
|
||||
|
||||
if (!JSC.is_bindgen) JSC.napi.fixDeadCodeElimination();
|
||||
|
||||
Reference in New Issue
Block a user