Skip to content

Commit

Permalink
doc: mark global object as legacy
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mertcanaltin authored and targos committed May 12, 2023
1 parent c2b14b4 commit 7ed99e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/api/globals.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7ed99e8

Please sign in to comment.