github-pages-deploy-action/node_modules/@babel/runtime-corejs3/helpers/isNativeReflectConstruct.js

16 lines
464 B
JavaScript
Raw Normal View History

2020-03-22 05:13:25 +08:00
var _Reflect$construct = require("../core-js/reflect/construct");
function _isNativeReflectConstruct() {
if (typeof Reflect === "undefined" || !_Reflect$construct) return false;
if (_Reflect$construct.sham) return false;
if (typeof Proxy === "function") return true;
try {
Date.prototype.toString.call(_Reflect$construct(Date, [], function () {}));
return true;
} catch (e) {
return false;
}
}
module.exports = _isNativeReflectConstruct;