mobx 6.13.4 → 6.13.5

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/mobx.esm.js CHANGED
@@ -5902,8 +5902,15 @@ function unwrap(a) {
5902
5902
  return a;
5903
5903
  }
5904
5904
 
5905
+ var _getGlobal$Iterator;
5906
+ // safely get iterator prototype if available
5907
+ var maybeIteratorPrototype = ((_getGlobal$Iterator = /*#__PURE__*/getGlobal().Iterator) == null ? void 0 : _getGlobal$Iterator.prototype) || {};
5905
5908
  function makeIterable(iterator) {
5906
- return Object.assign(Object.create(Iterator.prototype), iterator);
5909
+ iterator[Symbol.iterator] = getSelf;
5910
+ return Object.assign(Object.create(maybeIteratorPrototype), iterator);
5911
+ }
5912
+ function getSelf() {
5913
+ return this;
5907
5914
  }
5908
5915
 
5909
5916
  function isAnnotation(thing) {