Reflect.hasOwn() ?

Mark S. Miller erights at google.com
Sat Jul 26 08:14:49 PDT 2014


On Fri, Jul 25, 2014 at 9:02 PM, Peter van der Zee <ecma at qfox.nl> wrote:

> On Sat, Jul 26, 2014 at 5:43 AM, Axel Rauschmayer <axel at rauschma.de>
> wrote:
> > The only exception that comes to my mind is `{}.hasOwnProperty.call(obj,
> > key)` (which is the only safe way to invoke this method). Would it make
> > sense to provide that as a tool function, e.g. as `Reflect.hasOwn()`?
>
> That would make it unsafe again. Not so much from random people
> polluting the global Object, but certainly unsafe from a security
> perspective.
>

Hi Peter, what is the security issue you are concerned about?




>
> - peter
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>



-- 
    Cheers,
    --MarkM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140726/82671444/attachment.html>


More information about the es-discuss mailing list