From c70ec6de14d0d655b7a625b89fdad8090d1af6b0 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Wed, 29 Apr 2026 11:52:45 +0200 Subject: [PATCH] stream: simplify `setPromiseHandled` utility Signed-off-by: Antoine du Hamel --- 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 81e65815eabe6b..de92c11bb12573 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() {}