Skip to content

buffer: inconsistent string validation #3770

Closed
@vkurchatkin

Description

@vkurchatkin
new Buffer('x', 'hex') // TypeError: Invalid hex string
new Buffer('xx', 'hex') // <Buffer >

This seems confusing

Metadata

Metadata

Assignees

No one assigned

    Labels

    bufferIssues and PRs related to the buffer subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions