esm: --experimental-wasm-modules integration support
This PR provides support for node --experimental-modules --experimental-wasm-modules
to support the ES module integration of WebAssembly modules through eg import './module.wasm'
.
The semantics match the proposed ES module integration semantics for Web Assembly as specified in https://github.com/webassembly/esm-integration.
At the previous modules group meeting we got consensus approval for upstreaming this feature under the --experimental-wasm-modules
flag.
//cc @nodejs/modules
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines