Skip to content

Commit f80a66f

Browse files
authored
deprecate platform.ts#globals in favor of globalThis (microsoft#166845)
1 parent f08feed commit f80a66f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/vs/base/common/platform.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ declare const process: INodeProcess;
5353
declare const global: unknown;
5454
declare const self: unknown;
5555

56+
/**
57+
* @deprecated use `globalThis` instead
58+
*/
5659
export const globals: any = (typeof self === 'object' ? self : typeof global === 'object' ? global : {});
5760

5861
let nodeProcess: INodeProcess | undefined = undefined;

0 commit comments

Comments
 (0)