Set and Map additions in the latest draft

Erik Arvidsson erik.arvidsson at
Mon Oct 29 09:35:54 PDT 2012


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?


More information about the es-discuss mailing list