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()); } }