[JS IR BE] Improve diagnostics in tests
This commit is contained in:
+5
-1
@@ -3,5 +3,9 @@ package kotlin
|
||||
// see StdLibTestBase.removeAdHocAssertions
|
||||
|
||||
fun fail(message: String? = null): Nothing {
|
||||
throw Exception(message)
|
||||
// TODO: replace with next version when exception is supported properly
|
||||
// throw Exception(message)
|
||||
|
||||
js("throw new Error(message)")
|
||||
null!!
|
||||
}
|
||||
Reference in New Issue
Block a user