Index: src/ast/scopes.cc |
diff --git a/src/ast/scopes.cc b/src/ast/scopes.cc |
index fbcdf903602b63249232124f285c705aec42a553..435abdf24a5512d9ccd7936dd10baeb81ab9ade3 100644 |
--- a/src/ast/scopes.cc |
+++ b/src/ast/scopes.cc |
@@ -1195,8 +1195,8 @@ void DeclarationScope::ResetAfterPreparsing(AstValueFactory* ast_value_factory, |
DCHECK(is_function_scope()); |
// Reset all non-trivial members. |
- decls_.Clear(); |
- locals_.Clear(); |
+ decls_.Rewind(0); |
+ locals_.Rewind(0); |
sloppy_block_function_map_.Clear(); |
variables_.Clear(); |
// Make sure we won't walk the scope tree from here on. |
@@ -1220,7 +1220,7 @@ void DeclarationScope::ResetAfterPreparsing(AstValueFactory* ast_value_factory, |
} |
} |
} else { |
- params_.Clear(); |
+ params_.Rewind(0); |
} |
#ifdef DEBUG |