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 ff86b1d

Browse filesBrowse files
committed
stream: simplify setPromiseHandled utility
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com> PR-URL: #63032 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
1 parent 04d3538 commit ff86b1d
Copy full SHA for ff86b1d

1 file changed

+1-1Lines changed: 1 addition & 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/webstreams/util.js‎

Copy file name to clipboardExpand all lines: lib/internal/webstreams/util.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ function setPromiseHandled(promise) {
178178
// MarkAsHandled, but this avoids the extra boundary cross
179179
// and is hopefully faster at the cost of an extra Promise
180180
// allocation.
181-
PromisePrototypeThen(promise, () => {}, () => {});
181+
PromisePrototypeThen(promise, undefined, () => {});
182182
}
183183

184184
async function nonOpFlush() {}

0 commit comments

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