[JS IR BE] Minor: Use proper trow in js compiler test runtime

This commit is contained in:
Svyatoslav Kuzmich
2019-03-28 14:46:56 +03:00
parent ce1ae417c2
commit e52ae38cf5
+1 -5
View File
@@ -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)
}