react-magma-dom 4.3.0-next.6 → 4.3.0-next.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -127,31 +127,20 @@ function _isNativeFunction(fn) {
127
127
  }
128
128
 
129
129
  function _isNativeReflectConstruct() {
130
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
131
- if (Reflect.construct.sham) return false;
132
- if (typeof Proxy === "function") return true;
133
130
  try {
134
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
135
- return true;
136
- } catch (e) {
137
- return false;
138
- }
139
- }
140
-
141
- function _construct(Parent, args, Class) {
142
- if (_isNativeReflectConstruct()) {
143
- _construct = Reflect.construct.bind();
144
- } else {
145
- _construct = function _construct(Parent, args, Class) {
146
- var a = [null];
147
- a.push.apply(a, args);
148
- var Constructor = Function.bind.apply(Parent, a);
149
- var instance = new Constructor();
150
- if (Class) _setPrototypeOf(instance, Class.prototype);
151
- return instance;
152
- };
153
- }
154
- return _construct.apply(null, arguments);
131
+ var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
132
+ } catch (t) {}
133
+ return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {
134
+ return !!t;
135
+ })();
136
+ }
137
+
138
+ function _construct(t, e, r) {
139
+ if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
140
+ var o = [null];
141
+ o.push.apply(o, e);
142
+ var p = new (t.bind.apply(t, o))();
143
+ return r && _setPrototypeOf(p, r.prototype), p;
155
144
  }
156
145
 
157
146
  function _wrapNativeSuper(Class) {