UNPKG

484 BJavaScriptView Raw
1var _Reflect$construct = require("@babel/runtime-corejs2/core-js/reflect/construct");
2
3function _isNativeReflectConstruct() {
4 if (typeof Reflect === "undefined" || !_Reflect$construct) return false;
5 if (_Reflect$construct.sham) return false;
6 if (typeof Proxy === "function") return true;
7
8 try {
9 Date.prototype.toString.call(_Reflect$construct(Date, [], function () {}));
10 return true;
11 } catch (e) {
12 return false;
13 }
14}
15
16module.exports = _isNativeReflectConstruct;
\No newline at end of file