Index: src/interpreter/bytecode-generator.cc |
diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc |
index 7a1a7a051154bf4c583f4a02460b1f61be3bc5fe..61b63a6dea9f95e2e0995dc355aa66151520471b 100644 |
--- a/src/interpreter/bytecode-generator.cc |
+++ b/src/interpreter/bytecode-generator.cc |
@@ -3051,7 +3051,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(); |
@@ -3200,7 +3200,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 |