Skip to content

Commit a9adbb6

Browse files
GeoffreyBoothdanielleadams
authored andcommitted
doc: fix spelling of 'WebAssembly'
PR-URL: #40785 Backport-PR-URL: #41776 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>
1 parent b4fea14 commit a9adbb6

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

doc/api/esm.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -554,12 +554,12 @@ node --experimental-json-modules index.mjs # works
554554
555555
> Stability: 1 - Experimental
556556
557-
Importing Web Assembly modules is supported under the
557+
Importing WebAssembly modules is supported under the
558558
`--experimental-wasm-modules` flag, allowing any `.wasm` files to be
559559
imported as normal modules while also supporting their module imports.
560560
561561
This integration is in line with the
562-
[ES Module Integration Proposal for Web Assembly][].
562+
[ES Module Integration Proposal for WebAssembly][].
563563
564564
For example, an `index.mjs` containing:
565565
@@ -1405,7 +1405,7 @@ success!
14051405
[Core modules]: modules.md#core-modules
14061406
[Dynamic `import()`]: https://wiki.developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import#Dynamic_Imports
14071407
[ECMAScript Top-Level `await` proposal]: https://github.com/tc39/proposal-top-level-await/
1408-
[ES Module Integration Proposal for Web Assembly]: https://github.com/webassembly/esm-integration
1408+
[ES Module Integration Proposal for WebAssembly]: https://github.com/webassembly/esm-integration
14091409
[Import Assertions proposal]: https://github.com/tc39/proposal-import-assertions
14101410
[JSON modules]: #json-modules
14111411
[Node.js Module Resolution Algorithm]: #resolver-algorithm-specification

lib/internal/modules/esm/translators.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ translators.set('json', async function jsonStrategy(url, source) {
337337

338338
// Strategy for loading a wasm module
339339
translators.set('wasm', async function(url, source) {
340-
emitExperimentalWarning('Importing Web Assembly modules');
340+
emitExperimentalWarning('Importing WebAssembly modules');
341341

342342
assertBufferSource(source, false, 'load');
343343

test/es-module/test-esm-wasm.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ child.on('close', (code, signal) => {
3131
strictEqual(code, 0);
3232
strictEqual(signal, null);
3333
ok(stderr.toString().includes(
34-
'ExperimentalWarning: Importing Web Assembly modules is ' +
34+
'ExperimentalWarning: Importing WebAssembly modules is ' +
3535
'an experimental feature. This feature could change at any time'
3636
));
3737
});

0 commit comments

Comments
 (0)