From 6017bd6586a49d181b126ac1381454b0ac6be90c Mon Sep 17 00:00:00 2001 From: konsoletyper Date: Sun, 8 Mar 2015 21:13:31 +0300 Subject: [PATCH] Fix https://github.com/konsoletyper/teavm/issues/84 --- .../java/org/teavm/platform/plugin/PlatformGenerator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/teavm-platform/src/main/java/org/teavm/platform/plugin/PlatformGenerator.java b/teavm-platform/src/main/java/org/teavm/platform/plugin/PlatformGenerator.java index 6e0a0208a..ede1670d6 100644 --- a/teavm-platform/src/main/java/org/teavm/platform/plugin/PlatformGenerator.java +++ b/teavm-platform/src/main/java/org/teavm/platform/plugin/PlatformGenerator.java @@ -152,7 +152,7 @@ public class PlatformGenerator implements Generator, Injector, DependencyPlugin } else { writer.append("return cls[c]($return);").softNewLine(); } - writer.outdent().append("}").softNewLine(); + writer.outdent().append("};").softNewLine(); writer.append("return ").append(selfName).append("(").append(context.getParameterName(1)); if (context.isAsync()) { @@ -225,7 +225,7 @@ public class PlatformGenerator implements Generator, Injector, DependencyPlugin writer.append("return null;").softNewLine(); writer.outdent().append("}").softNewLine(); writer.append("return cls[c]();").softNewLine(); - writer.outdent().append("}").softNewLine(); + writer.outdent().append("};").softNewLine(); writer.append("return ").append(selfName).append("(").append(context.getParameterName(1)) .append(");").softNewLine();