Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@ronag
Copy link
Member

@ronag ronag commented Sep 28, 2019

Adds some test for passing invalid args to Writable.write

This basically ports some test from Readable.push.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

@ronag ronag force-pushed the test-writable-write-invalid-chunk branch from 65df100 to af366a5 Compare September 28, 2019 07:49
test/parallel/test-stream-writable-invalid-chunk.js Outdated Show resolved Hide resolved
test/parallel/test-stream-writable-invalid-chunk.js Outdated Show resolved Hide resolved
@ronag
Copy link
Member Author

ronag commented Sep 28, 2019

There is a slight discrepancy between null and undefined both inside and outside objectMode which I'd hope someone could clarify the rationale behind.

@ronag ronag force-pushed the test-writable-write-invalid-chunk branch from af366a5 to 780f62d Compare September 28, 2019 07:53
@Trott
Copy link
Member

Trott commented Oct 1, 2019

@nodejs/testing

@nodejs-github-bot
Copy link
Collaborator

nodejs-github-bot commented Oct 1, 2019

@Trott
Copy link
Member

Trott commented Oct 2, 2019

@nodejs/streams (particularly on the "is undefined being handled correctly?" question)

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

test/parallel/test-stream-writable-invalid-chunk.js Outdated Show resolved Hide resolved
test/parallel/test-stream-writable-invalid-chunk.js Outdated Show resolved Hide resolved
@Trott Trott added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Oct 3, 2019
@Trott
Copy link
Member

Trott commented Oct 3, 2019

Landed in 6ea51bc

@Trott Trott closed this Oct 3, 2019
Trott pushed a commit that referenced this pull request Oct 3, 2019
PR-URL: #29746
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
BridgeAR pushed a commit that referenced this pull request Oct 9, 2019
PR-URL: #29746
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
@BridgeAR BridgeAR mentioned this pull request Oct 10, 2019
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.