[Harmony Proxies] Proposal: Property fixing

Mark S. Miller erights at google.com
Thu Jun 16 19:23:23 PDT 2011

On Thu, Jun 16, 2011 at 7:14 PM, Allen Wirfs-Brock <allen at wirfs-brock.com>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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20110616/b39c181a/attachment-0001.html>

More information about the es-discuss mailing list