Suggestion: "Object.hasOwnProperty"

Jordan Harband ljharb at gmail.com
Fri May 27 15:15:53 UTC 2016


Reflect is only for API mirrors to Proxy traps - that's why
Reflect.enumerate was removed along with the Enumerate Proxy trap.

On Friday, May 27, 2016, Isiah Meadows <isiahmeadows at gmail.com> wrote:

> I'd, for ergonomic reasons, would prefer it on Reflect. I very frequently
> alias this function, so having it as a static method on Reflect would be
> nice.
>
> On Thu, May 26, 2016, 17:42 doodad-js Admin <doodadjs at gmail.com
> <javascript:_e(%7B%7D,'cvml','doodadjs at gmail.com');>> wrote:
>
>> >> This would break a Web, a I have seen code that relies on
>> Object.hasOwnProperty === Object.prototype.hasOwnProperty
>>
>> Sorry, I didn’t remember that the constructor inherits it.
>>
>> >> Anyway, it would be handy to have such function as `Reflect.hasOwn` or
>> something like that.
>>
>> Yeah, maybe that then. Or “System.ObjectHasOwn” or else.
>>
>> Thanks
>> _______________________________________________
>> es-discuss mailing list
>> es-discuss at mozilla.org
>> <javascript:_e(%7B%7D,'cvml','es-discuss at mozilla.org');>
>> https://mail.mozilla.org/listinfo/es-discuss
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20160527/04d70a15/attachment.html>


More information about the es-discuss mailing list