Skip to content

stream: throw invalid arg type from End Of Stream#41766

Merged
nodejs-github-bot merged 1 commit intonodejs:masterfrom
MrJithil:todo-task-7-throwInvalidArgType
Feb 10, 2022
Merged

stream: throw invalid arg type from End Of Stream#41766
nodejs-github-bot merged 1 commit intonodejs:masterfrom
MrJithil:todo-task-7-throwInvalidArgType

Conversation

@MrJithil
Copy link
Member

Completed another TODO task.

Stream.finished method has validation checks. Currently, if the stream input param passed to it doesn't validate the input type.

In this PR, we are adding a type check and throwing type error in case the stream is not a Stream

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. needs-ci PRs that need a full CI run. semver-major PRs that contain breaking changes and should be released in the next major version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.