isNativeReflectConstruct.js 567 B

1234567891011121314151617
  1. var _Reflect$construct = require("@babel/runtime-corejs3/core-js/reflect/construct");
  2. function _isNativeReflectConstruct() {
  3. if (typeof Reflect === "undefined" || !_Reflect$construct) return false;
  4. if (_Reflect$construct.sham) return false;
  5. if (typeof Proxy === "function") return true;
  6. try {
  7. Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {}));
  8. return true;
  9. } catch (e) {
  10. return false;
  11. }
  12. }
  13. module.exports = _isNativeReflectConstruct;
  14. module.exports["default"] = module.exports, module.exports.__esModule = true;