web 3d图形渲染器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
590 B

  1. var check = function (it) {
  2. return it && it.Math == Math && it;
  3. };
  4. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  5. module.exports =
  6. // eslint-disable-next-line es/no-global-this -- safe
  7. check(typeof globalThis == 'object' && globalThis) ||
  8. check(typeof window == 'object' && window) ||
  9. // eslint-disable-next-line no-restricted-globals -- safe
  10. check(typeof self == 'object' && self) ||
  11. check(typeof global == 'object' && global) ||
  12. // eslint-disable-next-line no-new-func -- fallback
  13. (function () { return this; })() || Function('return this')();