stream: simplify setPromiseHandled utility

Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/63032
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
This commit is contained in:
Antoine du Hamel committed 2026-05-07 15:41:49 +02:00
1 parent 04d3538074
commit ff86b1d64f
1 file changed
+1 -1
+1 -1
View File
@@ -178,7 +178,7 @@ function setPromiseHandled(promise) {
// MarkAsHandled, but this avoids the extra boundary cross
// and is hopefully faster at the cost of an extra Promise
// allocation.
PromisePrototypeThen(promise, () => {}, () => {});
PromisePrototypeThen(promise, undefined, () => {});
}
async function nonOpFlush() {}