[[Invoke]] and implicit method calls
jason.orendorff at gmail.com
Mon Sep 23 12:02:56 PDT 2013
On Mon, Sep 23, 2013 at 3:40 AM, Tom Van Cutsem <tomvc.be at gmail.com> 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]].
More information about the es-discuss