Skip to content

Import Bytes #626

@styfle

Description

@styfle

WebKittens

No response

Title of the proposal

Import Bytes

URL to the spec

https://tc39.es/proposal-import-bytes/

URL to the spec's repository

https://github.com/tc39/proposal-import-bytes

Issue Tracker URL

No response

Explainer URL

No response

TAG Design Review URL

No response

Mozilla standards-positions issue URL

mozilla/standards-positions#1367

WebKit Bugzilla URL

No response

Radar URL

No response

Description

import bytes from "./photo.png" with { type: "bytes" };

The bytes are returned as a Uint8Array backed by an immutable arraybuffer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    from: otherProposed, edited, or co-edited by an individual or entity that doesn't have a more specific label.topic: javascriptSpec relates to the JavaScript programming languagevenue: Ecma TC39Spec is developed in Ecma TC39, which standardizes ECMAScript (aka JavaScript)venue: WHATWG HTML Workstream

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions