Skip to content

Commit 8016628

Browse files
aduh95richardlau
authored andcommitted
doc: fix globals.md introduction
Splitting the introduction sentence in two paragraphs so it's clearer the list of variables only apply to the second sentence. PR-URL: #51742 Reviewed-By: Jithil P Ponnan <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Chemi Atlow <[email protected]> Reviewed-By: Moshe Atlow <[email protected]>
1 parent 9ddbe45 commit 8016628

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

doc/api/globals.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44

55
<!-- type=misc -->
66

7-
These objects are available in all modules. The following variables may appear
8-
to be global but are not. They exist only in the scope of modules, see the
9-
[module system documentation][]:
7+
These objects are available in all modules.
8+
9+
The following variables may appear to be global but are not. They exist only in
10+
the scope of [CommonJS modules][]:
1011

1112
* [`__dirname`][]
1213
* [`__filename`][]
@@ -1008,6 +1009,7 @@ added: v18.0.0
10081009
A browser-compatible implementation of [`WritableStreamDefaultWriter`][].
10091010

10101011
[CommonJS module]: modules.md
1012+
[CommonJS modules]: modules.md
10111013
[ECMAScript module]: esm.md
10121014
[Web Crypto API]: webcrypto.md
10131015
[`--experimental-websocket`]: cli.md#--experimental-websocket
@@ -1072,7 +1074,6 @@ A browser-compatible implementation of [`WritableStreamDefaultWriter`][].
10721074
[`structuredClone`]: https://developer.mozilla.org/en-US/docs/Web/API/structuredClone
10731075
[buffer section]: buffer.md
10741076
[built-in objects]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects
1075-
[module system documentation]: modules.md
10761077
[timers]: timers.md
10771078
[webassembly-mdn]: https://developer.mozilla.org/en-US/docs/WebAssembly
10781079
[webassembly-org]: https://webassembly.org

0 commit comments

Comments
 (0)