source: node_modules/core-js-pure/internals/global.js@ d24f17c

main
Last change on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 649 bytes
Line 
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')();
Note: See TracBrowser for help on using the repository browser.