From e6bb91bfb08147defefcaba73b748914ca307b1d Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Tue, 2 Apr 2019 17:12:53 +0300 Subject: [PATCH] JS: fix coroutines --- .../teavm/backend/javascript/rendering/StatementRenderer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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