getOwnPropertyDescriptor side effects

Boris Zbarsky bzbarsky at mit.edu
Thu Jan 12 07:08:14 UTC 2017


On 1/11/17 8:55 PM, Isiah Meadows wrote:
> I was expecting the error to throw on invoking the getter. Calling
> `Object.getOwnPropertyDescriptor` should *never* do that (spec invariant).

There is no getter, from the JS point of view.  It's a value property. 
That's the whole point of this conversation.

We seem to be in violent agreement that what v8 is doing is a spec 
violation, fwiw.

-Boris


More information about the es-discuss mailing list