JS: Make js Error to be mapped to kotlin.Throwable, inherit Exception and Error from Throwable.

This commit is contained in:
Ilya Gorbunov
2015-07-17 15:05:04 +03:00
parent f2716a973c
commit b7829d8471
3 changed files with 12 additions and 4 deletions
+3
View File
@@ -1,5 +1,8 @@
package java.lang
library
open public class Error(message: String? = null): Throwable(message) {}
library
open public class Exception(message: String? = null): Throwable(message) {}