From 0ddec2d9b55bc703e104700e541cb1f60f63b045 Mon Sep 17 00:00:00 2001 From: Zalim Bashorov Date: Mon, 16 Mar 2015 22:21:39 +0300 Subject: [PATCH] Minor in JS backend: throw IllegalStateException instead of UnsupportedOperationException inside CallCase --- .../kotlin/js/translate/callTranslator/CallTranslator.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/js.translator/src/org/jetbrains/kotlin/js/translate/callTranslator/CallTranslator.kt b/js/js.translator/src/org/jetbrains/kotlin/js/translate/callTranslator/CallTranslator.kt index 7b5977a43a5..695585e882a 100644 --- a/js/js.translator/src/org/jetbrains/kotlin/js/translate/callTranslator/CallTranslator.kt +++ b/js/js.translator/src/org/jetbrains/kotlin/js/translate/callTranslator/CallTranslator.kt @@ -148,7 +148,7 @@ fun computeExplicitReceiversForInvoke( trait CallCase { - protected fun I.unsupported(message: String = "") : Nothing = throw UnsupportedOperationException("this case unsupported. $this") + protected fun I.unsupported(message: String = "") : Nothing = throw IllegalStateException("this case unsupported. $this") protected fun I.noReceivers(): JsExpression = unsupported()