diff --git a/teavm-html4j/src/main/java/org/teavm/html4j/JavaScriptBodyGenerator.java b/teavm-html4j/src/main/java/org/teavm/html4j/JavaScriptBodyGenerator.java index 1e6f755e1..2ab8c14d2 100644 --- a/teavm-html4j/src/main/java/org/teavm/html4j/JavaScriptBodyGenerator.java +++ b/teavm-html4j/src/main/java/org/teavm/html4j/JavaScriptBodyGenerator.java @@ -57,7 +57,7 @@ public class JavaScriptBodyGenerator implements Generator { writer.append(",").ws(); wrapParameter(writer, context.getParameterName(i + 1)); } - writer.append(")").softNewLine(); + writer.append(");").softNewLine(); writer.append("return "); unwrapValue(writer, method.getResultType(), "result"); writer.append(";").softNewLine();