Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
@RReverser

Description

@RReverser
Issue body actions

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

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.