| Index: src/interpreter/bytecode-generator.cc
|
| diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc
|
| index 06eb53e92a499233fd83a0a73502eceeebf72b28..7f31fbbdc12d713a06cec2059f4ed2181f912421 100644
|
| --- a/src/interpreter/bytecode-generator.cc
|
| +++ b/src/interpreter/bytecode-generator.cc
|
| @@ -3016,7 +3016,7 @@ void BytecodeGenerator::VisitNewLocalFunctionContext() {
|
| }
|
|
|
| void BytecodeGenerator::VisitBuildLocalActivationContext() {
|
| - Scope* scope = this->scope();
|
| + DeclarationScope* scope = this->scope();
|
|
|
| if (scope->has_this_declaration() && scope->receiver()->IsContextSlot()) {
|
| Variable* variable = scope->receiver();
|
| @@ -3165,7 +3165,8 @@ void BytecodeGenerator::VisitNewTargetVariable(Variable* variable) {
|
|
|
| void BytecodeGenerator::VisitFunctionClosureForContext() {
|
| AccumulatorResultScope accumulator_execution_result(this);
|
| - Scope* closure_scope = execution_context()->scope()->ClosureScope();
|
| + DeclarationScope* closure_scope =
|
| + execution_context()->scope()->GetClosureScope();
|
| if (closure_scope->is_script_scope() ||
|
| closure_scope->is_module_scope()) {
|
| // Contexts nested in the native context have a canonical empty function as
|
|
|