mobx 6.15.3 → 6.15.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mobx",
3
- "version": "6.15.3",
3
+ "version": "6.15.4",
4
4
  "description": "Simple, scalable state management.",
5
5
  "source": "src/mobx.ts",
6
6
  "main": "dist/index.js",
@@ -1,7 +1,8 @@
1
1
  import { getGlobal } from "../internal"
2
2
 
3
3
  // safely get iterator prototype if available
4
- const maybeIteratorPrototype = getGlobal().Iterator?.prototype || {}
4
+ const global = getGlobal()
5
+ const maybeIteratorPrototype = global.Iterator?.prototype || {}
5
6
 
6
7
  export function makeIterable<T, TReturn = unknown>(
7
8
  iterator: Iterator<T>