[JS] Fix extra js function capturing

This commit is contained in:
Svyatoslav Kuzmich
2020-11-12 18:48:34 +03:00
parent 95140f35f8
commit 218c246111
@@ -49,7 +49,7 @@ internal fun hashCode(obj: dynamic): Int {
"function" -> getObjectHashCode(obj)
"number" -> getNumberHashCode(obj)
"boolean" -> if(obj.unsafeCast<Boolean>()) 1 else 0
else -> getStringHashCode(js("String(obj)"))
else -> getStringHashCode(js("String")(obj))
}
}