Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e95570c

Browse filesBrowse files
gurgundayaduh95
authored andcommitted
process: handle rejections only when needed
Signed-off-by: Gürgün Dayıoğlu <hey@gurgun.day> PR-URL: #62919 Reviewed-By: Stephen Belanger <admin@stephenbelanger.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Ilyas Shabi <ilyasshabi94@gmail.com>
1 parent 24a0781 commit e95570c
Copy full SHA for e95570c

1 file changed

+2-1Lines changed: 2 additions & 1 deletion

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/internal/process/task_queues.js‎

Copy file name to clipboardExpand all lines: lib/internal/process/task_queues.js
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ function processTicksAndRejections() {
102102
AsyncContextFrame.set(priorContextFrame);
103103
}
104104
runMicrotasks();
105-
} while (!queue.isEmpty() || processPromiseRejections());
105+
} while (!queue.isEmpty() ||
106+
(hasRejectionToWarn() && processPromiseRejections()));
106107
setHasTickScheduled(false);
107108
setHasRejectionToWarn(false);
108109
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.