DavidBruant / ECMAScript-regrets

Learning from mistakes of the past
55 stars 2 forks source link

non-reflexive strict equality comparison test #5

Open michaelficarra opened 12 years ago

michaelficarra commented 12 years ago

0/0 !== 0/0

Also, 0 and -0 are not distinguished by the strict equality comparison.

DavidBruant commented 12 years ago

This is regrettable indeed :-) Adressed in ES6 http://wiki.ecmascript.org/doku.php?id=harmony:egal