Object property for-in enumeration as an internal method

David Bruant bruant at enseirb-matmeca.fr
Mon Mar 14 12:41:31 PDT 2011


Le 12/03/2011 23:45, David Bruant a écrit :
> Hi,
>
> I think it would be worth for spec readability to give a name to the
> for-in property enumeration internal method and list it as such in ES5
> 8.6.2 Table 8 regardless the fact that it is implementation-dependent.
> From the spec edition point of view, it would require a bit of
> re-writing for the for-in statement semantics algorithm.
>
> I have noticed that there is no mention of this internal method in
> Allen's resource
> (http://www.wirfs-brock.com/allen/things/es5-technial-notes-and-resources).
> For the record, this internal method is "called" in (at least I
> haven't found any other place):
> * 12.6.4 The for-in Statement (twice)
> * 15.2.3.7 Object.defineProperties
> * 15.2.3.14 Object.keys
* (Indirect) 15.12.3 JSON.stringify
"The ordering of the Strings should be the same as that used by the
Object.keys standard built-in function."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20110314/646f2c3c/attachment.html>


More information about the es-discuss mailing list