Comment #4 on issue 3859 by [email protected]: Init collections from iterable & SameValueZero
https://code.google.com/p/v8/issues/detail?id=3859

I think this is related to how NaN elements are represented in an Array.

For instance, other iterables will work as expected

```
new Map((new Map).set(NaN, 1).set(NaN, 2)).get(NaN) // 2
new Map((new Map).set(NaN, 1).set(NaN, 2)).size // 1
new Set((new Set).add(NaN).add(NaN)).size // 1

function* NaNEntries() { yield [NaN, 1]; yield [NaN, 2]; yield [NaN, 3]; }
function* NaNValues() { yield NaN; yield NaN; yield NaN; }

new Map(NaNEntries()).size // 1
new Map(NaNEntries()).get(NaN) // 3
new Set(NaNValues()).size // 1
new Set(NaNValues()).has(NaN) // true
```

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to