diff options
author | 2022-11-07 04:49:10 -0800 | |
---|---|---|
committer | 2022-11-07 04:49:10 -0800 | |
commit | c00359a521bfcd0d1476511962cfc50763796e61 (patch) | |
tree | bda8c766e02080251394c33222d52fffe1af1380 /src/bun.js/api/bun.zig | |
parent | 71d0e14210fb0fa1cd19c650dfd45e25dcafab98 (diff) | |
download | bun-c00359a521bfcd0d1476511962cfc50763796e61.tar.gz bun-c00359a521bfcd0d1476511962cfc50763796e61.tar.zst bun-c00359a521bfcd0d1476511962cfc50763796e61.zip |
[bun:test] Implement `done` callback with support for async functions
Diffstat (limited to 'src/bun.js/api/bun.zig')
-rw-r--r-- | src/bun.js/api/bun.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bun.js/api/bun.zig b/src/bun.js/api/bun.zig index 52b457e54..727712897 100644 --- a/src/bun.js/api/bun.zig +++ b/src/bun.js/api/bun.zig @@ -2270,7 +2270,7 @@ pub const Timer = struct { } var this = args.ptr[1].asPtr(CallbackJob); - globalThis.bunVM().runErrorHandler(args.ptr[0], null); + globalThis.bunVM().runErrorHandlerWithDedupe(args.ptr[0], null); this.deinit(); return JSValue.jsUndefined(); } @@ -2313,7 +2313,7 @@ pub const Timer = struct { } if (result.isAnyError(globalThis)) { - vm.runErrorHandler(result, null); + vm.runErrorHandlerWithDedupe(result, null); this.deinit(); return; } @@ -2322,7 +2322,7 @@ pub const Timer = struct { switch (promise.status(globalThis.vm())) { .Rejected => { this.deinit(); - vm.runErrorHandler(promise.result(globalThis.vm()), null); + vm.runErrorHandlerWithDedupe(promise.result(globalThis.vm()), null); }, .Fulfilled => { this.deinit(); |