[JS IR BE] Support exceptions in IR BE runtime

This commit is contained in:
Roman Artemev
2018-06-13 17:00:17 +03:00
committed by Roman Artemev
parent b65443dd25
commit 02628e8de3
3 changed files with 61 additions and 2 deletions
+1 -2
View File
@@ -3,6 +3,5 @@ package kotlin
// see StdLibTestBase.removeAdHocAssertions
fun fail(message: String? = null): Nothing {
js("throw new Error(message)")
null!!
throw Exception(message)
}