[JS IR BE] Support exceptions in IR BE runtime
This commit is contained in:
committed by
Roman Artemev
parent
b65443dd25
commit
02628e8de3
+1
-2
@@ -3,6 +3,5 @@ package kotlin
|
||||
// see StdLibTestBase.removeAdHocAssertions
|
||||
|
||||
fun fail(message: String? = null): Nothing {
|
||||
js("throw new Error(message)")
|
||||
null!!
|
||||
throw Exception(message)
|
||||
}
|
||||
Reference in New Issue
Block a user