Skip to content

Commit 7ed99e8

Browse files
mertcanaltintargos
authored andcommitted
doc: mark global object as legacy
PR-URL: #47819 Fixes: #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>
1 parent c2b14b4 commit 7ed99e8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/api/globals.md

+3
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,8 @@ added: v0.1.27
509509

510510
<!-- type=global -->
511511

512+
> Stability: 3 - Legacy. Use [`globalThis`][] instead.
513+
512514
* {Object} The global namespace object.
513515

514516
In browsers, the top-level scope is the global scope. This means that
@@ -1028,6 +1030,7 @@ A browser-compatible implementation of [`WritableStreamDefaultWriter`][].
10281030
[`console`]: console.md
10291031
[`exports`]: modules.md#exports
10301032
[`fetch()`]: https://developer.mozilla.org/en-US/docs/Web/API/fetch
1033+
[`globalThis`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis
10311034
[`module`]: modules.md#module
10321035
[`perf_hooks.performance`]: perf_hooks.md#perf_hooksperformance
10331036
[`process.nextTick()`]: process.md#processnexttickcallback-args

0 commit comments

Comments
 (0)