Index: src/parsing/parser.cc |
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc |
index 2333ba135075642a19d92cd95d8a9dc4e87da1ab..2694722d341396bfb75af5c608d97dd6871567e3 100644 |
--- a/src/parsing/parser.cc |
+++ b/src/parsing/parser.cc |
@@ -3635,10 +3635,8 @@ void Parser::InsertShadowingVarBindingInitializers(Block* inner_block) { |
DCHECK(inner_scope->is_declaration_scope()); |
Scope* function_scope = inner_scope->outer_scope(); |
DCHECK(function_scope->is_function_scope()); |
- ZoneList<Declaration*>* decls = inner_scope->declarations(); |
BlockState block_state(&scope_state_, inner_scope); |
- for (int i = 0; i < decls->length(); ++i) { |
- Declaration* decl = decls->at(i); |
+ for (Declaration* decl : *inner_scope->declarations()) { |
if (decl->proxy()->var()->mode() != VAR || !decl->IsVariableDeclaration()) { |
continue; |
} |