Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Intent to Prototype: Source phase imports

191 views
Skip to first unread message

Chromestatus

unread,
Mar 27, 2025, 5:32:03 PMMar 27
to blin...@chromium.org, lpardo...@microsoft.com, s...@google.com

Contact emails

lpardo...@microsoft.com, s...@google.com

Explainer

None

Specification

https://arai-a.github.io/ecma262-compare/?pr=3492

Summary

introduces the `import source` and `import.source` syntax. It allows modules to be imported as a representation of their compiled source, when the host supports such representation; currently, only WebAssembly modules are supported. This provides Wasm module fetching through the browser, including applying source-specific CSP policies for dynamic Wasm instantiation.



Blink component

Blink>JavaScript>Language

Motivation

TC39 proposal: https://github.com/tc39/proposal-source-phase-imports ECMA262 spec PR: https://arai-a.github.io/ecma262-compare/?pr=3492 HTML Standard "Fetch a single module script" section: https://html.spec.whatwg.org/#fetch-a-single-module-script Wasm "Module Records" section: https://webassembly.github.io/esm-integration/js-api/index.html#webassembly-module-record



Initial public proposal

None

TAG review

None

TAG review status

Not applicable

Risks



Interoperability and Compatibility

None



Gecko: No signal

WebKit: No signal

Web developers: No signals

Other signals:

WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?

None



Debuggability

None



Is this feature fully tested by web-platform-tests?

No

Flag name on about://flags

None

Finch feature name

None

Non-finch justification

None

Requires code in //chrome?

False

Tracking bug

https://issues.chromium.org/issues/42204365

Estimated milestones

No milestones specified



Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5796131906519040?gate=5641303091838976

This intent message was generated by Chrome Platform Status.
Reply all
Reply to author
Forward
0 new messages