On Thu, Jun 16, 2011 at 7:14 PM, Allen Wirfs-Brock <[email protected]>wrote:

>
> On Jun 16, 2011, at 6:52 PM, Mark S. Miller wrote:
>
> >  [object a] → [object b] → [Object prototype object] → null
> >
> > a is a proxy object and b is a normal object.  If you define a non-
> > configurable property on b, and you look up that property on a, can it
> > still be reported as non-configurable?
>
> Perhaps I'm missing something here, but isn't the only way to  actually
> inspect (report?) the attributes of a property is via
> Object.getOwnPropertyDescriptor so you can't use a to inspect the attributes
> of a property of b, regardless or whether or not b is a Proxy. I believe
> that the only operations on a that are sensitive to the value of the
> configurable attribute only apply to own properties.
>


Was true until <
http://wiki.ecmascript.org/doku.php?id=harmony:extended_object_api>. Perhaps
we should simply withdraw the getPropertyDescriptor trap and avoid the whole
problem? When in doubt, leave it out.


-- 
    Cheers,
    --MarkM
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to