diff options
author | Mert Can Altın <mertgold60@gmail.com> | 2023-05-09 20:48:04 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-09 17:48:04 +0000 |
commit | 33231b0e890804ab6985b81d18b57c417fd1ba1b (patch) | |
tree | b7ce3f5010e85b462edfb90e96d64d55e3d391c0 | |
parent | a6ad5d89e0cb2058115fadaa5d052f834dd5ea36 (diff) | |
download | node-new-33231b0e890804ab6985b81d18b57c417fd1ba1b.tar.gz |
doc: mark global object as legacy
PR-URL: https://github.com/nodejs/node/pull/47819
Fixes: https://github.com/nodejs/node/issues/47784
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
-rw-r--r-- | doc/api/globals.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/api/globals.md b/doc/api/globals.md index 306d800dbd..dec10a5a4e 100644 --- a/doc/api/globals.md +++ b/doc/api/globals.md @@ -509,6 +509,8 @@ added: v0.1.27 <!-- type=global --> +> Stability: 3 - Legacy. Use [`globalThis`][] instead. + * {Object} The global namespace object. In browsers, the top-level scope is the global scope. This means that @@ -1028,6 +1030,7 @@ A browser-compatible implementation of [`WritableStreamDefaultWriter`][]. [`console`]: console.md [`exports`]: modules.md#exports [`fetch()`]: https://developer.mozilla.org/en-US/docs/Web/API/fetch +[`globalThis`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis [`module`]: modules.md#module [`perf_hooks.performance`]: perf_hooks.md#perf_hooksperformance [`process.nextTick()`]: process.md#processnexttickcallback-args |