diff --git a/doc/api/esm.md b/doc/api/esm.md index 65fe0b2f8044d8..9d8f11e4363eac 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -559,12 +559,12 @@ node --experimental-json-modules index.mjs # works > Stability: 1 - Experimental -Importing Web Assembly modules is supported under the +Importing WebAssembly modules is supported under the `--experimental-wasm-modules` flag, allowing any `.wasm` files to be imported as normal modules while also supporting their module imports. This integration is in line with the -[ES Module Integration Proposal for Web Assembly][]. +[ES Module Integration Proposal for WebAssembly][]. For example, an `index.mjs` containing: @@ -1389,7 +1389,7 @@ success! [Core modules]: modules.md#core-modules [Dynamic `import()`]: https://wiki.developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import#Dynamic_Imports [ECMAScript Top-Level `await` proposal]: https://github.com/tc39/proposal-top-level-await/ -[ES Module Integration Proposal for Web Assembly]: https://github.com/webassembly/esm-integration +[ES Module Integration Proposal for WebAssembly]: https://github.com/webassembly/esm-integration [Import Assertions proposal]: https://github.com/tc39/proposal-import-assertions [JSON modules]: #json-modules [Node.js Module Resolution Algorithm]: #resolver-algorithm-specification diff --git a/lib/internal/modules/esm/translators.js b/lib/internal/modules/esm/translators.js index 157e23044b07fb..fdeaba0549ae9b 100644 --- a/lib/internal/modules/esm/translators.js +++ b/lib/internal/modules/esm/translators.js @@ -337,7 +337,7 @@ translators.set('json', async function jsonStrategy(url, source) { // Strategy for loading a wasm module translators.set('wasm', async function(url, source) { - emitExperimentalWarning('Importing Web Assembly modules'); + emitExperimentalWarning('Importing WebAssembly modules'); assertBufferSource(source, false, 'load'); diff --git a/test/es-module/test-esm-wasm.mjs b/test/es-module/test-esm-wasm.mjs index 877a841850dc4f..01717c47714f6a 100644 --- a/test/es-module/test-esm-wasm.mjs +++ b/test/es-module/test-esm-wasm.mjs @@ -31,7 +31,7 @@ child.on('close', (code, signal) => { strictEqual(code, 0); strictEqual(signal, null); ok(stderr.toString().includes( - 'ExperimentalWarning: Importing Web Assembly modules is ' + + 'ExperimentalWarning: Importing WebAssembly modules is ' + 'an experimental feature. This feature could change at any time' )); });