summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeoffrey Booth <webadmin@geoffreybooth.com>2021-11-09 20:39:29 -0800
committerMichaƫl Zasso <targos@protonmail.com>2021-11-26 15:36:35 +0100
commitb92416ff02594c24e53e325f71c99a9c05f0e914 (patch)
treeb36f7c7968358c5898159afc0c8a3805690cddb9
parent675c210b0424eced29a45eebfd5a8fc50ee9d2bb (diff)
downloadnode-new-b92416ff02594c24e53e325f71c99a9c05f0e914.tar.gz
doc: fix spelling of 'WebAssembly'
PR-URL: https://github.com/nodejs/node/pull/40785 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
-rw-r--r--doc/api/esm.md6
-rw-r--r--lib/internal/modules/esm/translators.js2
-rw-r--r--test/es-module/test-esm-wasm.mjs2
3 files changed, 5 insertions, 5 deletions
diff --git a/doc/api/esm.md b/doc/api/esm.md
index 65fe0b2f80..9d8f11e436 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 157e23044b..fdeaba0549 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 877a841850..01717c4771 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'
));
});