Maps and sets incorrectly distinguish NaN values #888
Labels
confirmed
issue reported has been reproduced
fixed - please verify
Issue has been fixed. Please verify and close.
Environment: XS 11.6.0 32 4
Description XS incorrectly differentiates NaN values in maps and sets.
Steps to Reproduce
Expected behavior
All NaN values should be indistinguishable from each other, with the first expression above returning
1
and the second returningtrue
because both Map Objects and Set Objects specify that "distinct [key] values are discriminated using the SameValueZero comparison algorithm", which via Number::sameValueZero must return true when both operands are NaN.Actual behavior
XS maps and sets differentiate
NaN
from constructed NaN values.The text was updated successfully, but these errors were encountered: