Skip to content

stream: writable/readable state initialised or not? #28991

Closed
@ronag

Description

@ronag

I've noticed a bit of an inconsistency in regards to the writable/readable state.

Sometimes we check whether it is trurthy and sometimes we don't. What is the thought here? I'm not even sure how/when the state object is not initialised since it is done in the constructor and it is never re-assigned.

Property accesses seem to usually (not always) check for unitialized value while methods in general don't perform any check.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions