diff --git a/libraries/stdlib/js-ir/runtime/hacks.kt b/libraries/stdlib/js-ir/runtime/hacks.kt index 50d1e26ddd2..7ccef88974d 100644 --- a/libraries/stdlib/js-ir/runtime/hacks.kt +++ b/libraries/stdlib/js-ir/runtime/hacks.kt @@ -12,12 +12,12 @@ internal fun throwUninitializedPropertyAccessException(name: String): Nothing = internal fun noWhenBranchMatchedException(): Nothing = throw NoWhenBranchMatchedException() -fun THROW_ISE() { +fun THROW_ISE(): Nothing { throw IllegalStateException() } -fun THROW_CCE() { +fun THROW_CCE(): Nothing { throw ClassCastException() } -fun THROW_NPE() { +fun THROW_NPE(): Nothing { throw NullPointerException() } \ No newline at end of file