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
477 B

  1. function _isNativeReflectConstruct() {
  2. if (typeof Reflect === "undefined" || !Reflect.construct) return false;
  3. if (Reflect.construct.sham) return false;
  4. if (typeof Proxy === "function") return true;
  5. try {
  6. Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  7. return true;
  8. } catch (e) {
  9. return false;
  10. }
  11. }
  12. module.exports = _isNativeReflectConstruct;
  13. module.exports["default"] = module.exports, module.exports.__esModule = true;