UNPKG

649 BJavaScriptView Raw
1'use strict';
2var check = function (it) {
3 return it && it.Math === Math && it;
4};
5
6// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
7module.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')();