JS: fixed Double.NaN behaviour (KT-13610).

This commit is contained in:
Anton Bannykh
2017-02-27 18:44:50 +03:00
parent f636ab21f8
commit 9e5ecc11b7
12 changed files with 357 additions and 63 deletions
+4
View File
@@ -23,6 +23,10 @@ Kotlin.equals = function (obj1, obj2) {
return false;
}
if (obj1 !== obj1) {
return obj2 !== obj2;
}
if (typeof obj1 == "object" && typeof obj1.equals === "function") {
return obj1.equals(obj2);
}