W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > March 2011

[Bug 12404] Structured Clone and Arrays (implementation notes and clarifications sought)

From: <bugzilla@jessica.w3.org>
Date: Thu, 31 Mar 2011 13:51:59 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1Q5II3-0003Ok-81@jessica.w3.org>

Boris Zbarsky <bzbarsky@mit.edu> changed:

           What    |Removed                     |Added
                 CC|                            |bzbarsky@mit.edu

--- Comment #2 from Boris Zbarsky <bzbarsky@mit.edu> 2011-03-31 13:51:58 UTC ---
Indeed.  In particular, the given description of clarification 2 is manifestly
incorrect, as it doesn't differentiate between these two arrays:

 ["zero", "one", undefined, undefined]
 ["zero", "one", , , ]

which are both arrays of length 4; the former is dense but the latter is

That said, I believe that this part of the behavior is correct, given what the
spec says right now: the second array above, as well as the array in your
example, only has two enumerable properties: "0" and "1".  I agree that for
arrays it would make sense to clone the length as well, even though it's not

Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Thursday, 31 March 2011 13:52:04 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:01:45 UTC