[JS IR BE] Don't mangle Any::equals method

This commit is contained in:
Svyatoslav Kuzmich
2019-02-23 03:24:09 +03:00
parent 27005d7c2e
commit a01407eec9
5 changed files with 18 additions and 10 deletions
+2 -2
View File
@@ -14,8 +14,8 @@ fun equals(obj1: dynamic, obj2: dynamic): Boolean {
}
return js("""
if (typeof obj1 === "object" && typeof obj1.equals_kotlin_Any_ === "function") {
return obj1.equals_kotlin_Any_(obj2);
if (typeof obj1 === "object" && typeof obj1.equals === "function") {
return obj1.equals(obj2);
}
if (obj1 !== obj1) {