Last change
on this file since e29cc2e was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
590 bytes
|
Line | |
---|
1 | var check = function (it) {
|
---|
2 | return it && it.Math == Math && it;
|
---|
3 | };
|
---|
4 |
|
---|
5 | // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
---|
6 | module.exports =
|
---|
7 | // eslint-disable-next-line es/no-global-this -- safe
|
---|
8 | check(typeof globalThis == 'object' && globalThis) ||
|
---|
9 | check(typeof window == 'object' && window) ||
|
---|
10 | // eslint-disable-next-line no-restricted-globals -- safe
|
---|
11 | check(typeof self == 'object' && self) ||
|
---|
12 | check(typeof global == 'object' && global) ||
|
---|
13 | // eslint-disable-next-line no-new-func -- fallback
|
---|
14 | (function () { return this; })() || Function('return this')();
|
---|
Note:
See
TracBrowser
for help on using the repository browser.