From 3c3ba7091a5ac9e775dd0a638a3f44f3602c8c65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mert=20Can=20Alt=C4=B1n?= Date: Sun, 7 May 2023 17:14:53 +0300 Subject: [PATCH] doc: mark global object as legacy --- doc/api/globals.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/api/globals.md b/doc/api/globals.md index 306d800dbdfd47..dec10a5a4e55f9 100644 --- a/doc/api/globals.md +++ b/doc/api/globals.md @@ -509,6 +509,8 @@ added: v0.1.27 +> Stability: 3 - Legacy. Use [`globalThis`][] instead. + * {Object} The global namespace object. In browsers, the top-level scope is the global scope. This means that @@ -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