Index: src/full-codegen.cc |
diff --git a/src/full-codegen.cc b/src/full-codegen.cc |
index c32309a61f77b646d039dfc6cf490e16d761ad24..fe3c43f692086ec56d17b31570941467463a7076 100644 |
--- a/src/full-codegen.cc |
+++ b/src/full-codegen.cc |
@@ -164,8 +164,8 @@ void BreakableStatementChecker::VisitForInStatement(ForInStatement* stmt) { |
void BreakableStatementChecker::VisitForOfStatement(ForOfStatement* stmt) { |
- // Mark for in statements breakable if the iterable expression is. |
- Visit(stmt->iterable()); |
+ // For-of is breakable because of the next() call. |
+ is_breakable_ = true; |
} |
@@ -1389,11 +1389,6 @@ void FullCodeGenerator::VisitForStatement(ForStatement* stmt) { |
} |
-void FullCodeGenerator::VisitForOfStatement(ForOfStatement* stmt) { |
- // TODO(wingo): Implement. |
-} |
- |
- |
void FullCodeGenerator::VisitTryCatchStatement(TryCatchStatement* stmt) { |
Comment cmnt(masm_, "[ TryCatchStatement"); |
SetStatementPosition(stmt); |