Skip to content

Commit b92416f

Browse files
GeoffreyBoothtargos
authored andcommitted
doc: fix spelling of 'WebAssembly'
PR-URL: #40785 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Bradley Farias <[email protected]> Reviewed-By: Myles Borins <[email protected]> Reviewed-By: Guy Bedford <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
1 parent 675c210 commit b92416f

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
@@ -559,12 +559,12 @@ node --experimental-json-modules index.mjs # works
559559
560560
> Stability: 1 - Experimental
561561
562-
Importing Web Assembly modules is supported under the
562+
Importing WebAssembly modules is supported under the
563563
`--experimental-wasm-modules` flag, allowing any `.wasm` files to be
564564
imported as normal modules while also supporting their module imports.
565565
566566
This integration is in line with the
567-
[ES Module Integration Proposal for Web Assembly][].
567+
[ES Module Integration Proposal for WebAssembly][].
568568
569569
For example, an `index.mjs` containing:
570570
@@ -1389,7 +1389,7 @@ success!
13891389
[Core modules]: modules.md#core-modules
13901390
[Dynamic `import()`]: https://wiki.developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import#Dynamic_Imports
13911391
[ECMAScript Top-Level `await` proposal]: https://github.com/tc39/proposal-top-level-await/
1392-
[ES Module Integration Proposal for Web Assembly]: https://github.com/webassembly/esm-integration
1392+
[ES Module Integration Proposal for WebAssembly]: https://github.com/webassembly/esm-integration
13931393
[Import Assertions proposal]: https://github.com/tc39/proposal-import-assertions
13941394
[JSON modules]: #json-modules
13951395
[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)