Array.prototype.contains solutions

John-David Dalton john.david.dalton at gmail.com
Tue Sep 30 17:30:46 PDT 2014


Maybe.
Though there would still be issues with implementations not aligning, like
Ember which does use defineProperty to make them non-enumerable and doesn't
pave existing methods,
as well as issues with scripts that support pre-ES5 environments that don't
want enumerable inconsistency.

JDD


On Tue, Sep 30, 2014 at 5:15 PM, Boris Zbarsky <bzbarsky at mit.edu> wrote:

> On 9/30/14, 8:12 PM, John-David Dalton wrote:
>
>> Extending native prototypes is a JavaScript "thing" and something that
>> will most likely continue continue.
>>
>
> Note that if people were extending in nice ways, using defineProperty and
> making their props non-enumerable instead of just doing a [[Set]], that
> would significantly reduce issues like this...
>
> -Boris
>
> _______________________________________________
> es-discuss mailing list
> 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/20140930/2c3754b4/attachment.html>


More information about the es-discuss mailing list