Minor: fix typo

This commit is contained in:
Zalim Bashorov
2016-12-24 00:19:15 +03:00
parent 45b92be1ae
commit 08e1f757a9
2 changed files with 2 additions and 2 deletions
@@ -332,7 +332,7 @@ public final class Namer {
}
@NotNull
public static JsExpression throwIllegalStateExcpetionFunRef() {
public static JsExpression throwIllegalStateExceptionFunRef() {
return new JsNameRef(THROW_ILLEGAL_STATE_EXCEPTION_FUN_NAME, kotlinObject());
}
@@ -59,7 +59,7 @@ class EnumTranslator(
val message = JsBinaryOperation(JsBinaryOperator.ADD,
context().program().getStringLiteral("No enum constant ${descriptor.fqNameSafe}."),
nameParam.makeRef())
val throwStatement = JsExpressionStatement(JsInvocation(Namer.throwIllegalStateExcpetionFunRef(), message))
val throwStatement = JsExpressionStatement(JsInvocation(Namer.throwIllegalStateExceptionFunRef(), message))
if (clauses.isNotEmpty()) {
val defaultCase = JsDefault().apply { statements += throwStatement }