Proxy semantics and Object.defineProperty

Jason Orendorff jason.orendorff at gmail.com
Wed Jul 13 11:43:22 PDT 2011


On Wed, Jul 13, 2011 at 10:55 AM, Tom Van Cutsem <tomvc.be at gmail.com> wrote:
> Good catch. It was not intentional to specify that normalized descriptors
> are necessarily complete. Actually, there are two cases to consider:
> - for defineProperty, the descriptor should not be completed, for exactly
> the reason you show.
> - for get{Own}PropertyDescriptor, in ES5 the result is always a complete
> descriptor, so it is not unreasonable for proxies to auto-complete any
> returned descriptor object.

Right, I agree. Thanks for the quick reply.

-j


More information about the es-discuss mailing list