JS: fix toString in case of kotlin.Throwable

This commit is contained in:
Alexey Andreev
2017-01-24 17:18:54 +03:00
parent 6b2f1ba4e4
commit aef7b83932
2 changed files with 9 additions and 1 deletions
@@ -13,6 +13,8 @@ fun check(e: Throwable, expectedString: String) {
}
fun box(): String {
check(Throwable(), "Throwable: null")
check(Throwable("ccc"), "Throwable: ccc")
check(Exception(), "Exception: null")
check(Exception("bbb"), "Exception: bbb")
check(MyException(), "MyException: null")