Index: src/compiler/ast-graph-builder.cc |
diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc |
index a85dcd5559288f15b38a5208a2552f9a71a8eba8..39fe69c81e6cb1d8d7b4237cce3dd4e8f50de905 100644 |
--- a/src/compiler/ast-graph-builder.cc |
+++ b/src/compiler/ast-graph-builder.cc |
@@ -610,6 +610,8 @@ void AstGraphBuilder::VisitForStatement(ForStatement* stmt) { |
VisitForTest(stmt->cond()); |
Node* condition = environment()->Pop(); |
for_loop.BreakUnless(condition); |
+ } else { |
+ for_loop.BreakUnless(jsgraph()->TrueConstant()); |
} |
VisitIterationBody(stmt, &for_loop, 0); |
for_loop.EndBody(); |