Skip to content

Commit b6ef6c8

Browse files
devsnekcodebytere
authored andcommittedJun 27, 2020
lib: remove manual exception handling in queueMicrotask
PR-URL: #33859 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 5957afc commit b6ef6c8

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed
 

‎lib/internal/process/task_queues.js

-8
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ const {
1515
enqueueMicrotask
1616
} = internalBinding('task_queue');
1717

18-
const {
19-
triggerUncaughtException
20-
} = internalBinding('errors');
21-
2218
const {
2319
setHasRejectionToWarn,
2420
hasRejectionToWarn,
@@ -151,10 +147,6 @@ function runMicrotask() {
151147
const callback = this.callback;
152148
try {
153149
callback();
154-
} catch (error) {
155-
// runInAsyncScope() swallows the error so we need to catch
156-
// it and handle it here.
157-
triggerUncaughtException(error, false /* fromPromise */);
158150
} finally {
159151
this.emitDestroy();
160152
}

0 commit comments

Comments
 (0)
Please sign in to comment.