summaryrefslogtreecommitdiff
path: root/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js')
-rw-r--r--node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js13
1 files changed, 5 insertions, 8 deletions
diff --git a/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js b/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
index 61840807..c9b3114b 100644
--- a/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
+++ b/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
@@ -1,11 +1,8 @@
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;
- }
+ var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
+ } catch (t) {}
+ return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {
+ return !!t;
+ })();
} \ No newline at end of file