-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Right now this happily accepts toSkip values bigger than Number.MAX_SAFE_INTEGER however that means implementing this in JS faithfully requires using a BigInt, which is sub-optimal for performance. I think anyone passing a value bigger than Number.MAX_SAFE_INTEGER is likely making a mistake anyway. It would take ~4 months to drive an iterator past Number.MAX_SAFE_INTEGER elements assuming each next took 1ns, which seems optimistic.
Presumably the correct error is a RangeError but I wouldn't necessarily block on a different one.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels