Skip to content
New issue

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

Immutable.fromJS: Detect cycles (RangeError: Maximum call stack size exceeded) #653

Closed
gasi opened this issue Oct 9, 2015 · 2 comments
Closed

Comments

@gasi
Copy link
Contributor

gasi commented Oct 9, 2015

When trying to convert circular data structures using Immutable.fromJS, it currently throws RangeError: Maximum call stack size exceeded. Instead of this, could fromJS follow the semantics of JSON.stringify and throw a more meaningful error, similar to TypeError: Converting circular structure to JSON?

Pardon if this is a duplicate, but I searched the existing issues for this and couldn’t find it.

Please let me know if you need any more details and thanks for building Immutable.js 😄

Repro: https://jsbin.com/kupavixuhe/edit?js,console

@gscottolson
Copy link

👍

@paramsingh88
Copy link

Any solution ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants