GeezerVison is showing github.com — doc: mark global object as legacy · nodejs/node@7ed99e8
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/globals.md +3Lines changed: 3 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -509,6 +509,8 @@ added: v0.1.27 |
509 | 509 |
|
510 | 510 | <!-- type=global --> |
511 | 511 |
|
| 512 | +> Stability: 3 - Legacy. Use [`globalThis`][] instead. |
| 513 | +
|
512 | 514 | * {Object} The global namespace object. |
513 | 515 |
|
514 | 516 | In browsers, the top-level scope is the global scope. This means that |
@@ -1028,6 +1030,7 @@ A browser-compatible implementation of [`WritableStreamDefaultWriter`][]. |
1028 | 1030 | [`console`]: console.md |
1029 | 1031 | [`exports`]: modules.md#exports |
1030 | 1032 | [`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 |
1031 | 1034 | [`module`]: modules.md#module |
1032 | 1035 | [`perf_hooks.performance`]: perf_hooks.md#perf_hooksperformance |
1033 | 1036 | [`process.nextTick()`]: process.md#processnexttickcallback-args |
|