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

David Flanagan:
> I really like the new §4.6 on indexed properties.  Thanks, Cameron!

Great!

> 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.

Ah, I didn’t realise that.

> 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.

It seems like proxies should allow throwing/ignoring based on strict
modeness of the caller.  I’ll leave the requirements to Reject in there
for now.

-- 
Cameron McCormack ≝ http://mcc.id.au/

Received on Saturday, 18 June 2011 05:30:29 UTC