Skip to content

Commit

Permalink
Proper fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyraoul committed Oct 16, 2024
1 parent bb4282d commit 3d7d76f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mobx/src/utils/iterable.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { getGlobal } from "../internal"

// safely get iterator prototype if available
const maybeIteratorPrototype = getGlobal().Iterator?.prototype
const maybeIteratorPrototype = getGlobal().Iterator?.prototype || {}

export function makeIterable<T, TReturn = unknown>(
iterator: Iterator<T>
Expand Down

0 comments on commit 3d7d76f

Please sign in to comment.