Set and Map additions in the latest draft

Mark S. Miller erights at google.com
Mon Oct 29 10:12:56 PDT 2012


On Mon, Oct 29, 2012 at 9:35 AM, Erik Arvidsson <erik.arvidsson at gmail.com>wrote:

> Set.prototype.forEach
>
> I thought it was agreed that the function passed to
> Set.prototype.forEach would be called with 3 arguments, the value, the
> value again and the context object. This is so that one can use the
> same function for Array.prototype.forEach, Map.prototype.forEach and
> Set.prototype.forEach.
>
>
> Map.prototype.size and Set.prototype.size
>
> These should presumably be enumerable?
>

Hmmm. Another interesting factor in deciding between method and accessor
properties. FWIW, array.length is not enumerable.




>
>
> --
> erik
> _______________________________________________
> 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/20121029/352f0a2a/attachment.html>


More information about the es-discuss mailing list