diff --git a/doc/api/globals.md b/doc/api/globals.md index 2e085570e738cf..ee30b6f7f9ca7e 100644 --- a/doc/api/globals.md +++ b/doc/api/globals.md @@ -4,9 +4,10 @@ -These objects are available in all modules. The following variables may appear -to be global but are not. They exist only in the scope of modules, see the -[module system documentation][]: +These objects are available in all modules. + +The following variables may appear to be global but are not. They exist only in +the scope of [CommonJS modules][]: * [`__dirname`][] * [`__filename`][] @@ -1133,6 +1134,7 @@ added: v18.0.0 A browser-compatible implementation of [`WritableStreamDefaultWriter`][]. [CommonJS module]: modules.md +[CommonJS modules]: modules.md [ECMAScript module]: esm.md [Navigator API]: https://html.spec.whatwg.org/multipage/system-state.html#the-navigator-object [RFC 5646]: https://www.rfc-editor.org/rfc/rfc5646.txt @@ -1200,7 +1202,6 @@ A browser-compatible implementation of [`WritableStreamDefaultWriter`][]. [`window.navigator`]: https://developer.mozilla.org/en-US/docs/Web/API/Window/navigator [buffer section]: buffer.md [built-in objects]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects -[module system documentation]: modules.md [timers]: timers.md [webassembly-mdn]: https://developer.mozilla.org/en-US/docs/WebAssembly [webassembly-org]: https://webassembly.org