[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
|
||||
|
||||
fun fail(message: String? = null): Nothing {
|
||||
// TODO: replace with next version when exception is supported properly
|
||||
// throw Exception(message)
|
||||
|
||||
js("throw new Error(message)")
|
||||
null!!
|
||||
throw Exception(message)
|
||||
}
|
||||
Reference in New Issue
Block a user