On Wed, Jan 5, 2011 at 3:49 PM, Allen Wirfs-Brock <[email protected]>wrote:
>
> On Jan 5, 2011, at 3:14 PM, Mark S. Miller wrote:
>
> > In addition, if I read the spec right, the following code
> >
> > 15.5.5.2
> > Object.getOwnPropertyDescriptor(Object("foo"), '1')
> >
> > should return a descriptor claiming in effect that the (non-existent) '1'
> property on the String object is writable but not configurable. Is this a
> spec error? Is it already recorded as an errata? Cc'ing es5-discuss just in
> case.
> >
>
> I don't think so. Step 9 of 15.5.5.2 says return the property descriptor {
> [[Value]]: "o", [[Enumerable]]: true, [[Writable]]: false, [[Configurable]]:
> false} for this case. Where do you get that writable is true?
>
Doh!
My mistake. Most everywhere else, [[Writable]] is listed before
[[Enumerable]] so I got in the habit of reading according to positional
rather than name-based encoding.
>
> Allen
> _______________________________________________
> es5-discuss mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/es5-discuss
>
--
Cheers,
--MarkM
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss