JS: fixed Double.NaN behaviour (KT-13610).
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user