Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stream: writableError & readableError #29010

Closed
ronag opened this issue Aug 6, 2019 · 0 comments
Closed

stream: writableError & readableError #29010

ronag opened this issue Aug 6, 2019 · 0 comments
Labels
feature request Issues that request new features to be added to Node.js. stream Issues and PRs related to the stream subsystem.

Comments

@ronag
Copy link
Member

ronag commented Aug 6, 2019

Would be useful if streams kept track of what error it emitted if it errored.

For example this would allow async iterators to re-throw errors when creating an iterator to an already destroyed/errored stream.

We already have the _writableState.errorEmitted which we could re-use to store the error instead of a boolean.

@Fishrock123 Fishrock123 added stream Issues and PRs related to the stream subsystem. feature request Issues that request new features to be added to Node.js. labels Aug 7, 2019
@ronag ronag closed this as completed Jan 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Issues that request new features to be added to Node.js. stream Issues and PRs related to the stream subsystem.
Projects
None yet
Development

No branches or pull requests

2 participants