diff options
author | snek <snek@deno.com> | 2024-10-28 18:16:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-28 18:16:43 +0100 |
commit | 4e38fbd0a3e0ca139314e503494a8d4795007d8a (patch) | |
tree | dd67b5eee1348e03a688c4ba42b60f42774420b5 /ext/node | |
parent | f61af864df4d7a2513f738ddf2d5fddf79c878af (diff) |
fix: report exceptions from nextTick (#26579)
Fixes: https://github.com/denoland/deno/issues/24713
Fixes: https://github.com/denoland/deno/issues/25855
Diffstat (limited to 'ext/node')
-rw-r--r-- | ext/node/polyfills/_next_tick.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/node/polyfills/_next_tick.ts b/ext/node/polyfills/_next_tick.ts index 62470c564..af306a29c 100644 --- a/ext/node/polyfills/_next_tick.ts +++ b/ext/node/polyfills/_next_tick.ts @@ -62,6 +62,8 @@ export function processTicksAndRejections() { callback(...args); } } + } catch (e) { + reportError(e); } finally { // FIXME(bartlomieju): Deno currently doesn't support async hooks // if (destroyHooksExist()) |