Skip to content

stream: writableError & readableError #29010

Closed
@ronag

Description

@ronag

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.streamIssues and PRs related to the stream subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions