Index: src/compiler/ast-graph-builder.cc |
diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc |
index e45b615888d9647fe0ff9892c35a80d7f32fd679..7322ba0cfda5271febc026bdcb6f4889210f0ffc 100644 |
--- a/src/compiler/ast-graph-builder.cc |
+++ b/src/compiler/ast-graph-builder.cc |
@@ -1398,10 +1398,10 @@ void AstGraphBuilder::VisitForInStatement(ForInStatement* stmt) { |
VisitIterationBody(stmt, &for_loop); |
} |
test_value.End(); |
- index = environment()->Peek(0); |
for_loop.EndBody(); |
// Increment counter and continue. |
+ index = environment()->Peek(0); |
index = NewNode(javascript()->ForInStep(), index); |
environment()->Poke(0, index); |
} |