debian-mirror-gitlab/core-js/internals/global.js

14 lines
465 B
JavaScript
Raw Normal View History

2019-09-25 13:30:05 +05:30
var check = function (it) {
return it && it.Math == Math && it;
};
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
module.exports =
// eslint-disable-next-line no-undef
2019-10-31 01:37:42 +05:30
check(typeof globalThis == 'object' && globalThis) ||
check(typeof window == 'object' && window) ||
check(typeof self == 'object' && self) ||
check(typeof global == 'object' && global) ||
2019-09-25 13:30:05 +05:30
// eslint-disable-next-line no-new-func
Function('return this')();