Array.prototype.contains solutions

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

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.


On Tue, Sep 30, 2014 at 5:15 PM, Boris Zbarsky <bzbarsky at> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list