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; |