@babel/runtime-corejs2
Version:
babel's modular runtime helpers with core-js@2 polyfilling
12 lines • 454 B
JavaScript
import _Reflect$construct from "@babel/runtime-corejs2/core-js/reflect/construct";
export default function _isNativeReflectConstruct() {
if (typeof Reflect === "undefined" || !_Reflect$construct) return false;
if (_Reflect$construct.sham) return false;
if (typeof Proxy === "function") return true;
try {
Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {}));
return true;
} catch (e) {
return false;
}
}