admin
2020-12-31 91fce32b078d7e29aa0260e5e47c7df602c4c5ee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;