Skip to content

Commit

Permalink
lib: remove manual exception handling in queueMicrotask
Browse files Browse the repository at this point in the history
PR-URL: #33859
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: David Carlier <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
devsnek authored and codebytere committed Jun 27, 2020
1 parent 5957afc commit b6ef6c8
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/internal/process/task_queues.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ const {
enqueueMicrotask
} = internalBinding('task_queue');

const {
triggerUncaughtException
} = internalBinding('errors');

const {
setHasRejectionToWarn,
hasRejectionToWarn,
Expand Down Expand Up @@ -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();
}
Expand Down

0 comments on commit b6ef6c8

Please sign in to comment.