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

Cameron McCormack cam at
Wed Aug 10 19:20:48 PDT 2011

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.

More information about the es-discuss mailing list