ESM: Add initial support for fetching wasm modules
Categories
(Core :: JavaScript Engine, enhancement, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox148 | --- | fixed |
People
(Reporter: dminor, Assigned: dminor)
References
(Blocks 2 open bugs)
Details
Attachments
(14 files, 8 obsolete files)
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review |
See changes in https://github.com/whatwg/html/pull/10380/files.
| Assignee | ||
Comment 1•5 months ago
|
||
I'm going to scope this initial bug according to the note at the top of https://webassembly.github.io/esm-integration/js-api/index.html#esm-integration, specifically: "In this case, the ResolveExport abstract operation should be implemented as returning null, and the InitializeEnvironment and ExecuteModule abstract operations implemented as unconditionally throwing a SyntaxError exception."
Updated•5 months ago
|
| Assignee | ||
Comment 2•4 months ago
|
||
This has been renamed to "javascript-or-wasm" in the specification.
| Assignee | ||
Comment 3•4 months ago
|
||
| Assignee | ||
Comment 4•4 months ago
|
||
| Assignee | ||
Comment 5•4 months ago
|
||
| Assignee | ||
Comment 6•4 months ago
|
||
The only way we can distinguish between JavaScript and wasm modules is
using the mime type in the response. This adds a field to track this
information in the load request.
| Assignee | ||
Comment 7•4 months ago
|
||
| Assignee | ||
Comment 8•4 months ago
|
||
| Assignee | ||
Comment 9•4 months ago
|
||
| Assignee | ||
Comment 10•4 months ago
|
||
| Assignee | ||
Comment 11•4 months ago
|
||
| Assignee | ||
Comment 12•4 months ago
|
||
| Assignee | ||
Comment 13•4 months ago
|
||
| Assignee | ||
Comment 14•4 months ago
|
||
Since we don't support full evaulation/instance phase integration, we
throw on InitializeEnvironment and return null for ResolveExport.
| Assignee | ||
Comment 15•4 months ago
|
||
| Assignee | ||
Comment 16•4 months ago
|
||
| Assignee | ||
Comment 17•4 months ago
|
||
| Assignee | ||
Comment 18•4 months ago
|
||
This checks that we can parse a wasm module, and that attempting to
link it will throw a SyntaxError as expected.
| Assignee | ||
Comment 19•4 months ago
|
||
I'm going to scope this bug even smaller, and just add support for fetching wasm modules in this bug. I'll file follow ups to cover the other patches I originally had on this bug.
Updated•4 months ago
|
Updated•3 months ago
|
Updated•3 months ago
|
Updated•3 months ago
|
Updated•3 months ago
|
| Assignee | ||
Comment 20•3 months ago
|
||
| Assignee | ||
Comment 21•3 months ago
|
||
| Assignee | ||
Comment 22•3 months ago
|
||
| Assignee | ||
Comment 23•3 months ago
|
||
| Assignee | ||
Comment 24•3 months ago
|
||
Updated•3 months ago
|
Updated•3 months ago
|
Updated•3 months ago
|
Updated•3 months ago
|
Updated•3 months ago
|
Updated•3 months ago
|
Updated•3 months ago
|
Updated•3 months ago
|
Comment 25•3 months ago
|
||
Comment 26•3 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/40b07d51d5b5
https://hg.mozilla.org/mozilla-central/rev/5444c6f25ed3
https://hg.mozilla.org/mozilla-central/rev/521f575d58a3
https://hg.mozilla.org/mozilla-central/rev/a20026a4833a
https://hg.mozilla.org/mozilla-central/rev/467c90d79ed5
https://hg.mozilla.org/mozilla-central/rev/4ba2fa139419
https://hg.mozilla.org/mozilla-central/rev/956cd9b7d24e
https://hg.mozilla.org/mozilla-central/rev/d0d00cd30f0f
https://hg.mozilla.org/mozilla-central/rev/b894b8e202b2
https://hg.mozilla.org/mozilla-central/rev/b4b97092cbf2
https://hg.mozilla.org/mozilla-central/rev/2a4b97162023
https://hg.mozilla.org/mozilla-central/rev/e7a2a3052ddc
https://hg.mozilla.org/mozilla-central/rev/a4cac8f679b4
https://hg.mozilla.org/mozilla-central/rev/cd6d393e47d9
Updated•2 months ago
|
Description
•