On 7/26/14, 5:33 AM, Tom Van Cutsem wrote:
The rationale to remove Reflect.hasOwn was that it could easily be
simulated via (Reflect.getOwnPropertyDescriptor(obj,name) !==
undefined). While this conses a throw-away property descriptor object,
the overhead was deemed insignificant.

That depends on how much work an implementation has to perform to produce the value of a value property, doesn't it.

In the case of some DOM objects that work can be fairly significant (e.g. O(N) in size of the document).

On the other hand, maybe performance of Reflect.* is just not that critical.

-Boris
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to