-
-
Notifications
You must be signed in to change notification settings - Fork 35.6k
stream: writableError & readableErrorΒ #29010
Copy link
Copy link
Closed
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.streamIssues and PRs related to the stream subsystem.Issues and PRs related to the stream subsystem.
Metadata
Metadata
Assignees
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.streamIssues and PRs related to the stream subsystem.Issues and PRs related to the stream subsystem.
Type
Fields
Give feedbackNo fields configured for issues without a type.
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.errorEmittedwhich we could re-use to store the error instead of a boolean.