We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5957afc commit b6ef6c8Copy full SHA for b6ef6c8
lib/internal/process/task_queues.js
@@ -15,10 +15,6 @@ const {
15
enqueueMicrotask
16
} = internalBinding('task_queue');
17
18
-const {
19
- triggerUncaughtException
20
-} = internalBinding('errors');
21
-
22
const {
23
setHasRejectionToWarn,
24
hasRejectionToWarn,
@@ -151,10 +147,6 @@ function runMicrotask() {
151
147
const callback = this.callback;
152
148
try {
153
149
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 */);
158
150
} finally {
159
this.emitDestroy();
160
}
0 commit comments