| Index: src/parsing/preparser.cc
|
| diff --git a/src/parsing/preparser.cc b/src/parsing/preparser.cc
|
| index 95c12c698545c70e7a763d42c16a238f3d33106c..170feb570f486c684793ca7add05f34459cfcf5f 100644
|
| --- a/src/parsing/preparser.cc
|
| +++ b/src/parsing/preparser.cc
|
| @@ -307,14 +307,10 @@ void PreParser::DeclareAndInitializeVariables(
|
| ZoneList<const AstRawString*>* names, bool* ok) {
|
| if (declaration->pattern.variables_ != nullptr) {
|
| DCHECK(FLAG_lazy_inner_functions);
|
| - Scope* scope = declaration_descriptor->hoist_scope;
|
| - if (scope == nullptr) {
|
| - scope = this->scope();
|
| - }
|
| for (auto variable : *(declaration->pattern.variables_)) {
|
| declaration_descriptor->scope->RemoveUnresolved(variable);
|
| - scope->DeclareVariableName(variable->raw_name(),
|
| - declaration_descriptor->mode);
|
| + scope()->DeclareVariableName(variable->raw_name(),
|
| + declaration_descriptor->mode);
|
| }
|
| }
|
| }
|
|
|