Skip to content

indexOf empty string in buffer should return 0 #13023

@simonkcleung

Description

@simonkcleung

"abc".indexOf("") return 0.
But Buffer.from("abc").indexOf("") return -1.
Expected result : 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bufferIssues and PRs related to the buffer subsystem.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions