Skip to content

Implement bytes() method on Blob for reading bytes into a Uint8Array #52972

Closed
@bakkot

Description

@bakkot

See w3c/FileAPI#198. This is like the existing arrayBuffer() method, but gives you a Uint8Array instead.

Tests at web-platform-tests/wpt#46232

See also nodejs/undici#3256 for the issue for doing the same for Request/Response.

There's also a PR adding the same method to PushMessageData, but I don't think it's relevant to node. Mentioning it here anyway just in case I'm wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    experimentalIssues and PRs related to experimental features.feature requestIssues that request new features to be added to Node.js.web-standardsIssues and PRs related to Web APIs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions