Skip to content

non readable Duplex should not be readableAborted #40800

Description

@ronag
const x = new stream.Duplex({ readable: false, _write () {} })
x.destroy()
assert(!x.readableAborted)

We are missing a check in readableAborted getter regarding whether the Duplex is readable at all.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueIssues that are suitable for first-time contributors.streamIssues and PRs related to Node.js streams.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions