Skip to content

Commit b80e006

Browse files
mertcanaltinMoLow
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 fdf9681 commit b80e006

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
@@ -469,6 +469,8 @@ added: v0.1.27
469469

470470
<!-- type=global -->
471471

472+
> Stability: 3 - Legacy. Use [`globalThis`][] instead.
473+
472474
* {Object} The global namespace object.
473475

474476
In browsers, the top-level scope is the global scope. This means that
@@ -908,6 +910,7 @@ A browser-compatible implementation of [`WritableStreamDefaultWriter`][].
908910
[`console`]: console.md
909911
[`exports`]: modules.md#exports
910912
[`fetch()`]: https://developer.mozilla.org/en-US/docs/Web/API/fetch
913+
[`globalThis`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis
911914
[`module`]: modules.md#module
912915
[`perf_hooks.performance`]: perf_hooks.md#perf_hooksperformance
913916
[`process.nextTick()`]: process.md#processnexttickcallback-args

0 commit comments

Comments
 (0)