Minor: fix typo
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user