David-Sarah Hopwood david-sarah at jacaranda.org
Sat Dec 12 14:18:39 PST 2009

Garrett Smith wrote:
> [[HasOwnProperty]] is mentioned in one place in the spec: s
> Array.prototype.sort (comparefn).
> There is no mention of [[HasOwnProperty]] anywhere else.
> I also see a [[GetOwnProperty]] definition in Table 8 and a definition
> for "own property" (s. 4.3.30).
> Is there a difference between [[HasOwnProperty]] and "own property"?
> If not, then one or the other should be used. If so, then
> [[HasOwnProperty]] should be defined somewhere in the spec.

Array.prototype.sort should have been defined in terms of
[[GetOwnProperty]]. That is, the text in should be

# • The result of calling the [[GetOwnProperty]] internal method of
#   proto with argument ToString(j) is not *undefined*.

(Incidentally, I don't see any errata for the published standard at

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/20091212/1d0bf24e/attachment.bin>

More information about the es-discuss mailing list