summaryrefslogtreecommitdiff
path: root/alarm/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
diff options
context:
space:
mode:
Diffstat (limited to 'alarm/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js')
-rw-r--r--alarm/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/alarm/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js b/alarm/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
new file mode 100644
index 0000000..6184080
--- /dev/null
+++ b/alarm/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
@@ -0,0 +1,11 @@
+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;
+ }
+} \ No newline at end of file