On Mon, Sep 23, 2013 at 3:40 AM, Tom Van Cutsem <[email protected]> wrote:
> To me hasOwn() is as much a primitive as e.g. Object.keys().
>
> The only odd thing about it is that it lives on Object.prototype rather than
> as a static method on Object.
>
> I don't see the inconsistency, unless you would also want to remove
> Object.keys() because it can be expressed in terms of gOPN + gOPD.

But Tom, there already is no trap for Object.keys()! It's specified in
terms of [[OwnPropertyKeys]] and [[GetOwnProperty]].

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

Reply via email to