chache/@babel/runtime/helpers/isNativeReflectConstruct.js
2024-01-16 22:53:42 +08:00

17 lines
415 B
JavaScript

function _isNativeReflectConstruct() {
if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
if (Reflect.construct.sham) return !1;
if ("function" == typeof Proxy) return !0;
try {
return (
Boolean.prototype.valueOf.call(
Reflect.construct(Boolean, [], function () {})
),
!0
);
} catch (t) {
return !1;
}
}
module.exports = _isNativeReflectConstruct;