Skip to content

Missing binding to Blob.prototype.bytes #4475

Open
@nasso

Description

@nasso

Spec: https://w3c.github.io/FileAPI/#ref-for-dom-blob-bytes

// read from the Blob.
[NewObject] ReadableStream stream();
[NewObject] Promise<DOMString> text();
[NewObject] Promise<ArrayBuffer> arrayBuffer();
};

This would be nice to have, as it allows directly going from Blob to Uint8Array, skipping the ArrayBuffer step.

If it's just a matter of updating the Web IDL and nobody has anything against it, I'd be down to open a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions