From 6fbacf27739eada03acf2d0095aef1de03f24783 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Thu, 15 Feb 2024 09:30:44 +0100 Subject: [PATCH] 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: https://github.com/nodejs/node/pull/51742 Reviewed-By: Jithil P Ponnan Reviewed-By: Luigi Pinca Reviewed-By: Chemi Atlow Reviewed-By: Moshe Atlow --- doc/api/globals.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/doc/api/globals.md b/doc/api/globals.md index 4fb8000d6865b51..9d3d1e23bd630c9 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`][] @@ -1008,6 +1009,7 @@ added: v18.0.0 A browser-compatible implementation of [`WritableStreamDefaultWriter`][]. [CommonJS module]: modules.md +[CommonJS modules]: modules.md [ECMAScript module]: esm.md [Web Crypto API]: webcrypto.md [`--experimental-websocket`]: cli.md#--experimental-websocket @@ -1072,7 +1074,6 @@ A browser-compatible implementation of [`WritableStreamDefaultWriter`][]. [`structuredClone`]: https://developer.mozilla.org/en-US/docs/Web/API/structuredClone [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