-
-
Couldn't load subscription status.
- Fork 33.6k
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 APIsIssues and PRs related to Web APIs
Description
TC39 proposal source phase imports reached to stage 3 and has been implemented in V8 (starting from M131).
import source FooModule from "./foo.wasm";
FooModule instanceof WebAssembly.Module; // trueThe 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::Compile and return the WebAssembly.Module object from v8::Module::ResolveSourceCallback, and v8::HostImportModuleWithPhaseDynamicallyCallback.
See design doc for details.
/cc @guybedford
woess
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 APIsIssues and PRs related to Web APIs