May the defineProperty method of a proxy handler throw a TypeError?

Mark S. Miller erights at google.com
Wed Aug 10 19:45:17 PDT 2011


On Wed, Aug 10, 2011 at 7:20 PM, Cameron McCormack <cam at mcc.id.au> wrote:

> On 9/08/11 9:40 AM, Mark S. Miller wrote:
>
>> If there are no show-stopping legacy compat constraints forcing us to
>> specify Reject, I prefer that we specify these to throw a TypeError.
>>
>
> I can't say for sure, but I would be surprised if this didn't cause
> problems, given that it introduces exception throwing where currently
> assignment to non-writable properties of objects that need to be implemented
> as proxies (like NodeList) is just ignored.
>

Ok. If we decide not to, then I think it is important that proxies be able
to faithfully emulate ES5 failed "Reject" semantics, so that ES-next code
can fully implement a conformant DOM.

-- 
    Cheers,
    --MarkM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20110810/0771efa0/attachment.html>


More information about the es-discuss mailing list