W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2011

Can't implement 4.6.4 [[DefineOwnProperty]] with Proxies

From: David Flanagan <dflanagan@mozilla.com>
Date: Fri, 17 Jun 2011 13:55:31 -0700
Message-ID: <4DFBBF43.9090704@mozilla.com>
To: public-script-coord@w3.org
I really like the new 4.6 on indexed properties.  Thanks, Cameron!

Note, however, that the proxy handler defineProperty() trap is not 
passed the Throw parameter that is passed to [[DefineOwnProperty]], so a 
proxy-based implementation of 4.6.4 is problematic since it can't know 
whether to throw a TypeError or not.

This may be a Proxy bug rather than a WebIDL bug, however.  I brought it 
up on es-discuss last month, but there wasn't really any resolution.  
The most interesting message in that thread is here: 
I'll try to follow up on that.

Received on Friday, 17 June 2011 20:56:10 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:03 UTC