Deep cloning objects defined by JSON.

Peter van der Zee ecma at qfox.nl
Sun Jan 29 12:56:33 PST 2012


On Sun, Jan 29, 2012 at 7:50 PM, Xavier MONTILLET
<xavierm02.net at gmail.com> wrote:
> With your last two implementations, you don't keep cyclic references.

I did not intend to. In fact, my intention was to have a "clean"
object with just structure (objects and arrays) and primitives.
Nothing else, especially nothing invisible (like references, object
instances or attributes). You can save that fancy stuff for
Object.clone :)

- peter


More information about the es-discuss mailing list