Initial Save
This commit is contained in:
16
node_modules/core-js-pure/internals/global-this.js
generated
vendored
Normal file
16
node_modules/core-js-pure/internals/global-this.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
'use strict';
|
||||
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 es/no-global-this -- safe
|
||||
check(typeof globalThis == 'object' && globalThis) ||
|
||||
check(typeof window == 'object' && window) ||
|
||||
// eslint-disable-next-line no-restricted-globals -- safe
|
||||
check(typeof self == 'object' && self) ||
|
||||
check(typeof global == 'object' && global) ||
|
||||
check(typeof this == 'object' && this) ||
|
||||
// eslint-disable-next-line no-new-func -- fallback
|
||||
(function () { return this; })() || Function('return this')();
|
||||
Reference in New Issue
Block a user