From 0376a46c061228dd226673dda090657175edf01d Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Fri, 23 Nov 2018 12:13:13 +0300 Subject: [PATCH] Fix extra space added after new expression --- .../java/org/teavm/backend/javascript/rendering/AstWriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/teavm/backend/javascript/rendering/AstWriter.java b/core/src/main/java/org/teavm/backend/javascript/rendering/AstWriter.java index 04fdcc6f0..05b0eda9b 100644 --- a/core/src/main/java/org/teavm/backend/javascript/rendering/AstWriter.java +++ b/core/src/main/java/org/teavm/backend/javascript/rendering/AstWriter.java @@ -511,9 +511,9 @@ public class AstWriter { printList(node.getArguments()); writer.append(')'); if (node instanceof NewExpression) { - writer.ws(); NewExpression newExpr = (NewExpression) node; if (newExpr.getInitializer() != null) { + writer.ws(); print(newExpr.getInitializer()); } }