Closed shamrin closed 8 years ago
Lovely, thank you! 😻
Two minor suggestions:
level
to be stackRemaining
and decrement instead of incrementing? (Default to 64
instead of 0
, and error when you reach 0
.) That way if someone genuinely does have something that needs 65 stack frames, they can opt into upping the limit with an intuitive API.Thanks so much for this!
Done!
I've also written about this problem in wiki. Error message now links to it: https://github.com/rtfeldman/seamless-immutable/wiki/Deeply-nested-object-was-detected
Beautiful! 😻 Thanks so much @shamrin!
This throws development-only error when an object is too deeply nested.
Related issues: #73 and #16.