Skip to content

Commit 616a574

Browse files
GeoffreyBoothnodejs-github-bot
authored andcommitted
doc: fix spelling of 'WebAssembly'
PR-URL: #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>
1 parent 7633c86 commit 616a574

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

doc/api/esm.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -560,12 +560,12 @@ node --experimental-json-modules index.mjs # works
560560
561561
> Stability: 1 - Experimental
562562
563-
Importing Web Assembly modules is supported under the
563+
Importing WebAssembly modules is supported under the
564564
`--experimental-wasm-modules` flag, allowing any `.wasm` files to be
565565
imported as normal modules while also supporting their module imports.
566566
567567
This integration is in line with the
568-
[ES Module Integration Proposal for Web Assembly][].
568+
[ES Module Integration Proposal for WebAssembly][].
569569
570570
For example, an `index.mjs` containing:
571571
@@ -1390,7 +1390,7 @@ success!
13901390
[Core modules]: modules.md#core-modules
13911391
[Dynamic `import()`]: https://wiki.developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import#Dynamic_Imports
13921392
[ECMAScript Top-Level `await` proposal]: https://github.com/tc39/proposal-top-level-await/
1393-
[ES Module Integration Proposal for Web Assembly]: https://github.com/webassembly/esm-integration
1393+
[ES Module Integration Proposal for WebAssembly]: https://github.com/webassembly/esm-integration
13941394
[Import Assertions proposal]: https://github.com/tc39/proposal-import-assertions
13951395
[JSON modules]: #json-modules
13961396
[Node.js Module Resolution Algorithm]: #resolver-algorithm-specification

lib/internal/modules/esm/translators.js

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)