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>
This commit is contained in:
Mert Can Altın 2023-05-09 20:48:04 +03:00 committed by GitHub
parent a6ad5d89e0
commit 33231b0e89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -509,6 +509,8 @@ added: v0.1.27
<!-- type=global --> <!-- type=global -->
> Stability: 3 - Legacy. Use [`globalThis`][] instead.
* {Object} The global namespace object. * {Object} The global namespace object.
In browsers, the top-level scope is the global scope. This means that 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 [`console`]: console.md
[`exports`]: modules.md#exports [`exports`]: modules.md#exports
[`fetch()`]: https://developer.mozilla.org/en-US/docs/Web/API/fetch [`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 [`module`]: modules.md#module
[`perf_hooks.performance`]: perf_hooks.md#perf_hooksperformance [`perf_hooks.performance`]: perf_hooks.md#perf_hooksperformance
[`process.nextTick()`]: process.md#processnexttickcallback-args [`process.nextTick()`]: process.md#processnexttickcallback-args