We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
jdeniau
Methuselah96
Learn more about funding links in repositories.
Report abuse
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am using the version 4.0.0-rc.2
An exception was thrown at Iterator.next() (immutable.js line 1496)
var r = Seq(['a']).rest() var x = [...r] // throws 'TypeError: iterator.next is not a function'
This also occurs with multiple items in the sequence, on the last iteration when invoking .rest() (or .slice(1)) several times
The text was updated successfully, but these errors were encountered:
As a temporary quick and dirty solution, I patched line 1491 of immutable.js (method sliceSeq.__iteratorUncached)
var iterator = sliceSize !== 0 && collection.__iterator(type, reverse);
to
var iterator = sliceSize !== 0 ? collection.__iterator(type, reverse) : emptySequence()[Symbol.iterator]()
There is certainly a better solution to return an empty sequence, that's why I did not PR
Sorry, something went wrong.
Fix to issue immutable-js#1220 - exception thrown when iterating the …
996748f
…result of rest()
Correction to immutable-js#1220
be16c9a
No branches or pull requests
I am using the version 4.0.0-rc.2
What happened
An exception was thrown at Iterator.next() (immutable.js line 1496)
How to reproduce
This also occurs with multiple items in the sequence, on the last iteration when invoking .rest() (or .slice(1)) several times
The text was updated successfully, but these errors were encountered: