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