diff --git a/lib/internal/process/task_queues.js b/lib/internal/process/task_queues.js index c07942587ca9c2..3cf07601a23aa4 100644 --- a/lib/internal/process/task_queues.js +++ b/lib/internal/process/task_queues.js @@ -15,10 +15,6 @@ const { enqueueMicrotask } = internalBinding('task_queue'); -const { - triggerUncaughtException -} = internalBinding('errors'); - const { setHasRejectionToWarn, hasRejectionToWarn, @@ -151,10 +147,6 @@ function runMicrotask() { const callback = this.callback; try { callback(); - } catch (error) { - // runInAsyncScope() swallows the error so we need to catch - // it and handle it here. - triggerUncaughtException(error, false /* fromPromise */); } finally { this.emitDestroy(); }