Index: src/ast/ast-literal-reindexer.cc |
diff --git a/src/ast/ast-literal-reindexer.cc b/src/ast/ast-literal-reindexer.cc |
index fce33e70b8f7caf9aec7a25aaf3fe1ebfa00344e..6db9a61b9b48e235b3d06020b39aae448b93dde9 100644 |
--- a/src/ast/ast-literal-reindexer.cc |
+++ b/src/ast/ast-literal-reindexer.cc |
@@ -44,7 +44,8 @@ void AstLiteralReindexer::VisitNativeFunctionLiteral( |
void AstLiteralReindexer::VisitDoExpression(DoExpression* node) { |
- // TODO(caitp): literals in do expressions need re-indexing too. |
+ Visit(node->block()); |
+ Visit(node->result()); |
} |