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

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: 
https://mail.mozilla.org/pipermail/es-discuss/2011-May/014728.html.  
I'll try to follow up on that.

     David

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