stream: import markPromiseAsHandled directly in pipeTo · nodejs/node@5c8488d · GitHub
Skip to content

Commit 5c8488d

Browse files
committed
stream: import markPromiseAsHandled directly in pipeTo
Import markPromiseAsHandled directly from internalBinding('util') in readablestream.js rather than re-exporting it through internal/webstreams/util, so the C++ boundary stays visible at the call site. Also drop the verbose inline comments describing the markPromiseAsHandled vs setPromiseHandled choice; the rationale lives in the PR description.
1 parent 52772fe commit 5c8488d

2 files changed

Lines changed: 4 additions & 15 deletions

File tree

lib/internal/webstreams/readablestream.js

Lines changed: 4 additions & 13 deletions

lib/internal/webstreams/util.js

Lines changed: 0 additions & 2 deletions

0 commit comments

Comments
 (0)