diff --git a/core/src/main/java/org/teavm/backend/javascript/rendering/StatementRenderer.java b/core/src/main/java/org/teavm/backend/javascript/rendering/StatementRenderer.java index f229685d8..ccf13b4a7 100644 --- a/core/src/main/java/org/teavm/backend/javascript/rendering/StatementRenderer.java +++ b/core/src/main/java/org/teavm/backend/javascript/rendering/StatementRenderer.java @@ -256,7 +256,7 @@ public class StatementRenderer implements ExprVisitor, StatementVisitor { } Statement statement = statements.get(0); - return !(statement instanceof ConditionalStatement); + return !(statement instanceof ConditionalStatement) && !(statement instanceof GotoPartStatement); } @Override