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 @NotNull
public static JsExpression throwIllegalStateExcpetionFunRef() { public static JsExpression throwIllegalStateExceptionFunRef() {
return new JsNameRef(THROW_ILLEGAL_STATE_EXCEPTION_FUN_NAME, kotlinObject()); return new JsNameRef(THROW_ILLEGAL_STATE_EXCEPTION_FUN_NAME, kotlinObject());
} }
@@ -59,7 +59,7 @@ class EnumTranslator(
val message = JsBinaryOperation(JsBinaryOperator.ADD, val message = JsBinaryOperation(JsBinaryOperator.ADD,
context().program().getStringLiteral("No enum constant ${descriptor.fqNameSafe}."), context().program().getStringLiteral("No enum constant ${descriptor.fqNameSafe}."),
nameParam.makeRef()) nameParam.makeRef())
val throwStatement = JsExpressionStatement(JsInvocation(Namer.throwIllegalStateExcpetionFunRef(), message)) val throwStatement = JsExpressionStatement(JsInvocation(Namer.throwIllegalStateExceptionFunRef(), message))
if (clauses.isNotEmpty()) { if (clauses.isNotEmpty()) {
val defaultCase = JsDefault().apply { statements += throwStatement } val defaultCase = JsDefault().apply { statements += throwStatement }