From e52ae38cf528c008f496be776859a4f705cc6861 Mon Sep 17 00:00:00 2001 From: Svyatoslav Kuzmich Date: Thu, 28 Mar 2019 14:46:56 +0300 Subject: [PATCH] [JS IR BE] Minor: Use proper trow in js compiler test runtime --- js/js.translator/testData/_commonFiles/fail.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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