Status: New
Owner: ----
New issue 1223 by [email protected]: JSON stringify on host objects
ends up with a recursion error
http://code.google.com/p/v8/issues/detail?id=1223
When using JSON.stringify on objects that include host objects (DOM
elements, window.navigator etc.) then it ends with a recursion error.
On Firefox, Opera and IE host objects are serialized as being empty. For
example when using
JSON.stringify({elm: document.createElement("div"})
then in Firefox it ends up like
'{"elm": {}}'
But in Chrome the result is an error - "Converting circular structure to
JSON"
Demo: http://node.ee/json.html
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev