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