Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Unified Diff: src/parsing/parser.cc

Issue 2223773002: Move zone_ to Scope (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/ast/scopes.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/parser.cc
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc
index 12231d13033bc710ef3eeaf8f1a764cbf488c504..852101400b27ecb90e6813c29300d9a0f7a4b49c 100644
--- a/src/parsing/parser.cc
+++ b/src/parsing/parser.cc
@@ -2274,8 +2274,8 @@ Statement* Parser::ParseHoistableDeclaration(
!is_async && !(allow_harmony_restrictive_generators() && is_generator)) {
SloppyBlockFunctionStatement* delegate =
factory()->NewSloppyBlockFunctionStatement(empty, scope());
- scope()->GetDeclarationScope()->sloppy_block_function_map()->Declare(
- variable_name, delegate);
+ DeclarationScope* target_scope = scope()->GetDeclarationScope();
+ target_scope->DeclareSloppyBlockFunction(variable_name, delegate);
return delegate;
}
return empty;
« no previous file with comments | « src/ast/scopes.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698