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.

19 lines
523 B

  1. /* global globalThis */
  2. /*
  3. This file is copied from `core-js`.
  4. https://github.com/zloirock/core-js/blob/master/packages/core-js/internals/global.js
  5. MIT License
  6. Author: Denis Pushkarev (@zloirock)
  7. */
  8. const check = function (it) {
  9. return it && it.Math == Math && it;
  10. };
  11. module.exports =
  12. check(typeof globalThis == 'object' && globalThis) ||
  13. check(typeof window == 'object' && window) ||
  14. check(typeof self == 'object' && self) ||
  15. check(typeof global == 'object' && global) ||
  16. Function('return this')();