KJS: allow to use KClass::isInstance; implement isInstance in KClassImpl

This commit is contained in:
Zalim Bashorov
2016-10-15 17:36:06 +03:00
parent 6caf3c1c0f
commit a085df914f
7 changed files with 37 additions and 4 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ internal class KClassImpl<T : Any>(
}
override fun isInstance(value: Any?): Boolean {
TODO()
return js("Kotlin").isType(value, jClass)
}
override fun toString(): String {