-
-
Notifications
You must be signed in to change notification settings - Fork 37.1k
WebAssembly source phase imports #56056
Copy link
Copy link
Closed
Labels
esmIssues and PRs related to the ECMAScript Modules implementation.Issues and PRs related to the ECMAScript Modules implementation.wasmIssues and PRs related to WebAssembly.Issues and PRs related to WebAssembly.web-standardsIssues and PRs related to web-platform APIs and standards compliance.Issues and PRs related to web-platform APIs and standards compliance.
Description
Activity
Metadata
Metadata
Assignees
Labels
esmIssues and PRs related to the ECMAScript Modules implementation.Issues and PRs related to the ECMAScript Modules implementation.wasmIssues and PRs related to WebAssembly.Issues and PRs related to WebAssembly.web-standardsIssues and PRs related to web-platform APIs and standards compliance.Issues and PRs related to web-platform APIs and standards compliance.
TC39 proposal source phase imports reached to stage 3 and has been implemented in V8 (starting from M131).
The feature requires Node.js integration to support WebAssembly source phase imports. TLDR, if a SourceTextModule imports a source-phase WebAssembly module, create a module source object with
v8::WasmModuleObject::Compileand return theWebAssembly.Moduleobject fromv8::Module::ResolveSourceCallback, andv8::HostImportModuleWithPhaseDynamicallyCallback.WPT: https://github.com/web-platform-tests/wpt/blob/master/wasm/webapi/esm-integration/source-phase.tentative.html
/cc @guybedford