Skip to content

stream: don't emit 'end' after 'error' - #31182

Closed
ronag wants to merge 6 commits into
nodejs:masterfrom
nxtedition:readable-end-error
Closed

stream: don't emit 'end' after 'error'#31182
ronag wants to merge 6 commits into
nodejs:masterfrom
nxtedition:readable-end-error

Conversation

@ronag

@ronag ronag commented Jan 3, 2020

Copy link
Copy Markdown
Member

Don't emit 'end' after 'error'. There was still a case where this could occur (see test).

Note, that some tests that assume 'end' after 'error' needed to be modified.

Refs: #6083

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

@nodejs-github-bot nodejs-github-bot added the stream Issues and PRs related to the stream subsystem. label Jan 3, 2020
@ronag
ronag force-pushed the readable-end-error branch from 8996579 to 73c35c2 Compare January 3, 2020 21:34
@ronag

ronag commented Jan 3, 2020

Copy link
Copy Markdown
Member Author

semver-major

@Trott Trott added the semver-major PRs that contain breaking changes and should be released in the next major version. label Jan 3, 2020
@BridgeAR

BridgeAR commented Jan 4, 2020

Copy link
Copy Markdown
Member

@nodejs/streams PTAL

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Comment thread test/parallel/test-stream-readable-error-end.js Outdated
@ronag
ronag force-pushed the readable-end-error branch 3 times, most recently from 826b5d4 to dfc361e Compare January 4, 2020 10:44
@ronag
ronag force-pushed the readable-end-error branch from dfc361e to 9750a0b Compare January 4, 2020 10:45
@ronag
ronag requested a review from lpinca January 5, 2020 12:01

@mcollina mcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

@Trott Trott added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Jan 6, 2020
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@Trott

Trott commented Jan 6, 2020

Copy link
Copy Markdown
Member

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@Trott

Trott commented Jan 6, 2020

Copy link
Copy Markdown
Member

CITGM looks good.

@Trott

Trott commented Jan 6, 2020

Copy link
Copy Markdown
Member

Landed in 66f4e4e

@Trott Trott closed this Jan 6, 2020
Trott pushed a commit that referenced this pull request Jan 6, 2020
Refs: #6083

PR-URL: #31182
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
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. semver-major PRs that contain breaking changes and should be released in the next major version. stream Issues and PRs related to the stream subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants