V8 has no forEach.
On Feb 3, 2014 11:51 PM, "Vic99999" <[email protected]> wrote:
> > There was a SpiderMonkey bug1, and even a patch, for this for quite a
> while. The patch now landed and will be in Firefox 29.
>
> >V8 got fixed last week too
> >code.google.com/p/v8/issues/detail?id=3069
>
> but according to spec, "forEach" should call callback with "-0":
>
> var map = new Map();
> map.set(-0, 'x');
> map.forEach(function (value, key) {
> alert(1 / key);
> });
> alert(map.get(0));
>
> _______________________________________________
> es-discuss mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/es-discuss
>
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss