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.

11 lines
369 B

  1. export default 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. }