From cd699bffcb2b0d1e32c5062e04f259257dcd11b1 Mon Sep 17 00:00:00 2001 From: konsoletyper Date: Mon, 26 Jan 2015 22:43:59 +0400 Subject: [PATCH] Fix bug in JSBody support --- .../src/main/java/org/teavm/jso/plugin/JSBodyGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teavm-jso/src/main/java/org/teavm/jso/plugin/JSBodyGenerator.java b/teavm-jso/src/main/java/org/teavm/jso/plugin/JSBodyGenerator.java index a671c6ca6..25bbb4092 100644 --- a/teavm-jso/src/main/java/org/teavm/jso/plugin/JSBodyGenerator.java +++ b/teavm-jso/src/main/java/org/teavm/jso/plugin/JSBodyGenerator.java @@ -76,7 +76,7 @@ public class JSBodyGenerator implements Generator { .softNewLine(); writer.outdent().append("}").softNewLine(); - writer.appendMethodBody(methodRef).append('('); + writer.append("return ").appendMethodBody(methodRef).append('('); for (int i = 0; i < count; ++i) { if (i > 0) { writer.append(',').ws();