stream: reject push iterator.throw() with error · nodejs/node@0ab8f26 · GitHub
Skip to content

Commit 0ab8f26

Browse files
trivikraduh95
authored andcommitted
stream: reject push iterator.throw() with error
Keep the existing consumer cancellation side effects, but reject the iterator.throw() call with the supplied error instead of resolving with done: true. Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com> Assisted-by: openai:gpt-5.5 PR-URL: #64380 Fixes: #64378 Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent f6bf3f8 commit 0ab8f26

2 files changed

Lines changed: 35 additions & 10 deletions

File tree

lib/internal/streams/iter/push.js

Lines changed: 1 addition & 1 deletion

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

Lines changed: 34 additions & 9 deletions

0 commit comments

Comments
 (0)