aswi2020vldc-gitlab/templetes/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js @ 3a515b92
1 |
function _isNativeReflectConstruct() { |
---|---|
2 |
if (typeof Reflect === "undefined" || !Reflect.construct) return false; |
3 |
if (Reflect.construct.sham) return false; |
4 |
if (typeof Proxy === "function") return true; |
5 |
|
6 |
try { |
7 |
Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); |
8 |
return true; |
9 |
} catch (e) { |
10 |
return false; |
11 |
}
|
12 |
}
|
13 |
|
14 |
module.exports = _isNativeReflectConstruct; |