summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMert Can Altın <mertgold60@gmail.com>2023-05-09 20:48:04 +0300
committerGitHub <noreply@github.com>2023-05-09 17:48:04 +0000
commit33231b0e890804ab6985b81d18b57c417fd1ba1b (patch)
treeb7ce3f5010e85b462edfb90e96d64d55e3d391c0
parenta6ad5d89e0cb2058115fadaa5d052f834dd5ea36 (diff)
downloadnode-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.md3
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