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

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

On Wed, Aug 10, 2011 at 7:20 PM, Cameron McCormack <cam at> 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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list