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 danielleadams committed Jul 6, 2023
1 parent f8b33b1 commit 195eef6
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 @@ -469,6 +469,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 @@ -908,6 +910,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 195eef6

Please sign in to comment.