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:
parent
a6ad5d89e0
commit
33231b0e89
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user