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