From ff86b1d64fc4e7f3ddb3b2e03a8c9dd171f30235 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Sat, 2 May 2026 00:08:25 +0200 Subject: [PATCH] stream: simplify `setPromiseHandled` utility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Antoine du Hamel PR-URL: https://github.com/nodejs/node/pull/63032 Reviewed-By: Michaƫl Zasso Reviewed-By: Matteo Collina --- lib/internal/webstreams/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/webstreams/util.js b/lib/internal/webstreams/util.js index 81e65815eab..de92c11bb12 100644 --- a/lib/internal/webstreams/util.js +++ b/lib/internal/webstreams/util.js @@ -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() {}