for-in evaluation order

David-Sarah Hopwood david-sarah at jacaranda.org
Mon Dec 27 16:59:40 PST 2010


On 2010-12-27 19:15, David Herman wrote:
>> Dave, under the spec for "Operation OwnProperties(obj)" step 1, you don't explicitly state that these index properties are to be enumerated in numeric order. An oversight?
> 
> Oops, yes, thanks for catching that. I've updated the wiki.

The given algorithm seems to order index-properties before non-index
properties for each object on the prototype chain, rather than ordering
all index-properties (for all objects on the chain) before all non-index
properties. I'm not disagreeing with this choice, but was it intentional?

Nitpick: the '[ props, ...' notation could be misinterpreted as saying that
the previous 'props' list is the first element of the new list. It should be
something like 'props ++ [...'.

-- 
David-Sarah Hopwood  ⚥  http://davidsarah.livejournal.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 292 bytes
Desc: OpenPGP digital signature
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20101228/6ff5fa1c/attachment.bin>


More information about the es-discuss mailing list