main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
649 bytes
|
Rev | Line | |
---|
[79a0317] | 1 | 'use strict';
|
---|
| 2 | var check = function (it) {
|
---|
| 3 | return it && it.Math === Math && it;
|
---|
| 4 | };
|
---|
| 5 |
|
---|
| 6 | // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
---|
| 7 | module.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.