Skip to content

Commit 5e61a07

Browse files
authored
stream: simplify setPromiseHandled utility
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com> PR-URL: nodejs#63032 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
1 parent 69a970f commit 5e61a07

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/internal/webstreams/util.js

Lines 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)