1 | ;
|
2 | var check = function (it) {
|
3 | return it && it.Math === Math && it;
|
4 | };
|
5 |
|
6 | // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
7 | module.exports =
|
8 | // eslint-disable-next-line es/no-global-this -- safe
|
9 | check(typeof globalThis == 'object' && globalThis) ||
|
10 | check(typeof window == 'object' && window) ||
|
11 | // eslint-disable-next-line no-restricted-globals -- safe
|
12 | check(typeof self == 'object' && self) ||
|
13 | check(typeof global == 'object' && global) ||
|
14 | check(typeof this == 'object' && this) ||
|
15 | // eslint-disable-next-line no-new-func -- fallback
|
16 | (function () { return this; })() || Function('return this')();
|