diff --git a/js/js.translator/testData/_commonFiles/fail.kt b/js/js.translator/testData/_commonFiles/fail.kt index f92fa7d90aa..ac818be21fb 100644 --- a/js/js.translator/testData/_commonFiles/fail.kt +++ b/js/js.translator/testData/_commonFiles/fail.kt @@ -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) } \ No newline at end of file