diff options
Diffstat (limited to 'node_modules/core-js/internals/global.js')
| -rw-r--r-- | node_modules/core-js/internals/global.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/node_modules/core-js/internals/global.js b/node_modules/core-js/internals/global.js new file mode 100644 index 0000000..e846153 --- /dev/null +++ b/node_modules/core-js/internals/global.js @@ -0,0 +1,13 @@ +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 + check(typeof globalThis == 'object' && globalThis) || + check(typeof window == 'object' && window) || + check(typeof self == 'object' && self) || + check(typeof global == 'object' && global) || + // eslint-disable-next-line no-new-func + (function () { return this; })() || Function('return this')(); |
