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:
> 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
> 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.
> es-discuss mailing list
> es-discuss at mozilla.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss