I realized this is more appropriately filed as a bug (I think it's a spec
bug anyway...) and have done so
https://bugs.ecmascript.org/show_bug.cgi?id=1184.
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
I meant JSON.stringify explicitly specifies how to handle cycles.
On Monday, December 24, 2012, Brandon Benvie wrote:
> Given the following:
>
> var x = [1,2,3];
> x.push(x);
> x+"";
>
> What should happen? The behavior demonstrated by V8, Spidermonkey, and
> Chakra (haven't tested others) is to
Given the following:
var x = [1,2,3];
x.push(x);
x+"";
What should happen? The behavior demonstrated by V8, Spidermonkey, and
Chakra (haven't tested others) is to return the empty string for cycles,
thus returning the result '1,2,3,'. However, unless I'm missing something,
this behavior is unspec
3 matches
Mail list logo