◐ Shell
clean mode source ↗

stream: simplify `setPromiseHandled` utility · nodejs/node@ff86b1d

Original file line numberDiff line numberDiff line change

@@ -178,7 +178,7 @@ function setPromiseHandled(promise) {

178178

// MarkAsHandled, but this avoids the extra boundary cross

179179

// and is hopefully faster at the cost of an extra Promise

180180

// allocation.

181-

PromisePrototypeThen(promise, () => {}, () => {});

181+

PromisePrototypeThen(promise, undefined, () => {});

182182

}

183183
184184

async function nonOpFlush() {}