Skip to content

stream: validate writer options signal#64385

Open
trivikr wants to merge 1 commit into
nodejs:mainfrom
trivikr:stream-iter-writer-validate-options-signal
Open

stream: validate writer options signal#64385
trivikr wants to merge 1 commit into
nodejs:mainfrom
trivikr:stream-iter-writer-validate-options-signal

Conversation

@trivikr

@trivikr trivikr commented Jul 9, 2026

Copy link
Copy Markdown
Member

Fixes: #64384

stream/iterwriter methods now validateoptions.signal` consistently
before using or ignoring it.

This updates push, broadcast, and fromWritable writer write(),
writev(), and end() so invalid options.signal values throw
ERR_INVALID_ARG_TYPE instead of causing inconsistent behavior.


Assisted-by: openai:gpt-5.5

Validate options.signal for stream/iter writer write(), writev(),
and end() methods across push, broadcast, and fromWritable.

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/streams

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. stream Issues and PRs related to the stream subsystem. labels Jul 9, 2026
@trivikr trivikr added the request-ci Add this label to start a Jenkins CI on a PR. label Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ci PRs that need a full CI run. request-ci Add this label to start a Jenkins CI on a PR. stream Issues and PRs related to the stream subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

stream/iter: Writer methods do not consistently validate options.signal

2 participants