Last change
on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
3.8 KB
|
Line | |
---|
1 | /**
|
---|
2 | * @license
|
---|
3 | * Copyright Google LLC All Rights Reserved.
|
---|
4 | *
|
---|
5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
6 | * found in the LICENSE file at https://angular.io/license
|
---|
7 | */
|
---|
8 | const __globalThis = typeof globalThis !== 'undefined' && globalThis;
|
---|
9 | const __window = typeof window !== 'undefined' && window;
|
---|
10 | const __self = typeof self !== 'undefined' && typeof WorkerGlobalScope !== 'undefined' &&
|
---|
11 | self instanceof WorkerGlobalScope && self;
|
---|
12 | const __global = typeof global !== 'undefined' && global;
|
---|
13 | // Always use __globalThis if available, which is the spec-defined global variable across all
|
---|
14 | // environments, then fallback to __global first, because in Node tests both __global and
|
---|
15 | // __window may be defined and _global should be __global in that case.
|
---|
16 | const _global = __globalThis || __global || __window || __self;
|
---|
17 | /**
|
---|
18 | * Attention: whenever providing a new value, be sure to add an
|
---|
19 | * entry into the corresponding `....externs.js` file,
|
---|
20 | * so that closure won't use that global for its purposes.
|
---|
21 | */
|
---|
22 | export { _global as global };
|
---|
23 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2xvYmFsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvY29yZS9zcmMvdXRpbC9nbG9iYWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBU0gsTUFBTSxZQUFZLEdBQUcsT0FBTyxVQUFVLEtBQUssV0FBVyxJQUFJLFVBQVUsQ0FBQztBQUNyRSxNQUFNLFFBQVEsR0FBRyxPQUFPLE1BQU0sS0FBSyxXQUFXLElBQUksTUFBTSxDQUFDO0FBQ3pELE1BQU0sTUFBTSxHQUFHLE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