-
-
Notifications
You must be signed in to change notification settings - Fork 728
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
qs.parse stackoverflow on circular objects #31
Comments
Out of curiosity, what's the expected result here? |
Also it appears that the old version of qs crashed with this also:
|
Hm, weird. All I really know is that something with Anyway, I would assume that it would just copy the reference to the new object with different key names instead of trying to clone the value. |
So, removing the (useless?) |
Also, I verified that
so, as you can see, 0.6.6 did work with circular structures. |
Actually, it seems like |
I think I have a fix regardless :) Give me just a few minutes |
haha, no problem. I'm just trying to figure out this weirdness, haha :) |
account for circular references properly, closes #31
So when using
qs.parse
and passing in an object to expand out the top-level keys, if somewhere in the value is a circular reference, it will fail withRangeError: Maximum call stack size exceeded
. Here is a simple example:I'm really only reporting this because it used to work with the old
qs
library. It was reported to me here: expressjs/connect-multiparty#11 (comment)The text was updated successfully, but these errors were encountered: