Skip to content

stream.isReadable and stream.isWritable return null instead of false #59006

@RReverser

Description

@RReverser

Version

v24.2.0

Platform

Microsoft Windows NT 10.0.26100.0 x64

Subsystem

No response

What steps will reproduce the bug?

Try these functions in REPL:

stream.isReadable(new stream.Readable())
true
stream.isReadable(new stream.Writable())
null
stream.isWritable(new stream.Writable())
true
stream.isWritable(new stream.Readable())
null

How often does it reproduce? Is there a required condition?

Always.

What is the expected behavior? Why is that the expected behavior?

It should always return a boolean as per docs.

What do you see instead?

true and null

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-bugIssues with confirmed bugs.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions