stream: preserve push signal abort reason · nodejs/node@2cfa96f · GitHub
Skip to content

Commit 2cfa96f

Browse files
trivikraduh95
authored andcommitted
stream: preserve push signal abort reason
Pass the stream-wide signal reason directly to writer.fail() so valid non-Error abort reasons are not replaced with an AbortError. Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com> Assisted-by: codex:gpt-5.6-sol PR-URL: #64798 Fixes: #64797 Reviewed-By: Aviv Keller <me@aviv.sh>
1 parent 232287f commit 2cfa96f

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

lib/internal/streams/iter/push.js

Lines changed: 2 additions & 4 deletions

test/parallel/test-stream-iter-push-basic.js

Lines changed: 11 additions & 0 deletions

0 commit comments

Comments
 (0)