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

JSON on Safari can't handle big structures #21

Closed
GoogleCodeExporter opened this issue Mar 19, 2015 · 2 comments
Closed

JSON on Safari can't handle big structures #21

GoogleCodeExporter opened this issue Mar 19, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

When serializing a big structure to a JSON-string, Safari raises the error 
"Maximum call stack size 
exceeded". See attached test-case.

This is actually caused by a bug in Safari: 
http://bugs.webkit.org/show_bug.cgi?id=4045

This is a won't fix in base2, but when you might encounter this bug, you know 
where to look.

Can someone verify this for Safari beta 3 on Windows?

Original issue reported on code.google.com by doek...@gmail.com on 9 Jul 2007 at 4:42

Attachments:

@GoogleCodeExporter
Copy link
Author

One more note: if you use the method "apply" like below, you get 49 stack 
levels (actually, the apply in itself is a 
also a call, so you still have a 100 level limit, but not what you thought):

var i=0;
var recursionTest=function() {
  i++;
  arguments.callee.apply(this,arguments);
}

Original comment by doek...@gmail.com on 9 Jul 2007 at 5:23

@GoogleCodeExporter
Copy link
Author

Original comment by doek...@gmail.com on 14 Jul 2007 at 7:29

  • Added labels: Module-base2.JSON

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

No branches or pull requests

1 participant