-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
RangeError: Maximum call stack size exceeded #8
Comments
I think it's returning a stringified empty object for the model in that case, because the model's attributes are empty, and it's using Thanks |
This also fails with a jquery element: safeStringify = require('safe-json-stringify')
$ = require('jquery')
safeStringify( $('<div>') ) Throws a
Normal JSON.stringify throws a
(but I was hoping this module would mitigate that situation) |
I also had a max call stack crash on a DOM event I was trying to stringify. My browser tab actually froze up from it. Maybe it should limit recursion somehow? |
Oh, right, |
+1 This module is used within raven's sentry and this has become an issue on a project I'm working on. |
ACK. ;) |
Similar to jQuery, this issue is occurring when used with Cheerio. Crashing the browser when stringifying Cheerio objects. |
This issue still exists, in my case causing an infinite loop until the browser runs out of resources. Trying to serialize an thrown exception in an Angular application |
This issue causes an error in |
This breaks with any Backbone view (I assume an example of a common type of object). For example, with backbone, in Chrome, in the console:
Throws an error, "RangeError: Maximum call stack size exceeded"
With the model (
m
), interestingly, it doesn't throw an error, but it writes an empty object,"{}"
.Is this supposed to work only on simple objects, not instances of pseudo-classes?
Thanks
The text was updated successfully, but these errors were encountered: