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.
@@ -5883,8 +5883,15 @@
5883
5883
  return a;
5884
5884
  }
5885
5885
 
5886
+ var _getGlobal$Iterator;
5887
+ // safely get iterator prototype if available
5888
+ var maybeIteratorPrototype = ((_getGlobal$Iterator = /*#__PURE__*/getGlobal().Iterator) == null ? void 0 : _getGlobal$Iterator.prototype) || {};
5886
5889
  function makeIterable(iterator) {
5887
- return Object.assign(Object.create(Iterator.prototype), iterator);
5890
+ iterator[Symbol.iterator] = getSelf;
5891
+ return Object.assign(Object.create(maybeIteratorPrototype), iterator);
5892
+ }
5893
+ function getSelf() {
5894
+ return this;
5888
5895
  }
5889
5896
 
5890
5897
  function isAnnotation(thing) {