mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
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:
1 file changed
+1
-1
@@ -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() {}
|
||||
|
||||
Reference in new issue
Block a user