[JS IR BE] Add noWhenBranchMatchedException

* refact exception helpers
This commit is contained in:
Roman Artemev
2018-10-19 20:02:11 +03:00
committed by romanart
parent 3bea3eca2b
commit 6a05b1eee5
3 changed files with 35 additions and 2 deletions
+3
View File
@@ -48,6 +48,9 @@ public inline fun longArrayOf(vararg a: Long) = a
internal fun throwUninitializedPropertyAccessException(name: String): Nothing =
throw UninitializedPropertyAccessException("lateinit property $name has not been initialized")
internal fun noWhenBranchMatchedException(): Nothing = throw NoWhenBranchMatchedException()
fun THROW_ISE() {
throw IllegalStateException()
}