Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    experimentalIssues and PRs related to experimental features.feature requestIssues requesting new Node.js features.web-standardsIssues and PRs related to web-platform APIs and standards compliance.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions