Skip to content

Commit b37d988

Browse files
aduh95juanarbol
authored andcommitted
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 969780c commit b37d988

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
@@ -183,7 +183,7 @@ function setPromiseHandled(promise) {
183183
// MarkAsHandled, but this avoids the extra boundary cross
184184
// and is hopefully faster at the cost of an extra Promise
185185
// allocation.
186-
PromisePrototypeThen(promise, () => {}, () => {});
186+
PromisePrototypeThen(promise, undefined, () => {});
187187
}
188188

189189
async function nonOpFlush() {}

0 commit comments

Comments
 (0)