| Index: src/interpreter/bytecode-generator.cc
|
| diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc
|
| index 9c6dcf9fc8ee513365d6c41606294bb3486110ba..bd8399c781d4e090331d07e5baf097a1dfc059ed 100644
|
| --- a/src/interpreter/bytecode-generator.cc
|
| +++ b/src/interpreter/bytecode-generator.cc
|
| @@ -2927,6 +2927,9 @@ void BytecodeGenerator::BuildNewLocalActivationContext() {
|
| .LoadLiteral(scope->scope_info())
|
| .StoreAccumulatorInRegister(args[2])
|
| .CallRuntime(Runtime::kPushModuleContext, args);
|
| + } else if (scope->is_eval_scope()) {
|
| + int slot_count = scope->num_heap_slots() - Context::MIN_CONTEXT_SLOTS;
|
| + builder()->CreateEvalContext(slot_count);
|
| } else {
|
| int slot_count = scope->num_heap_slots() - Context::MIN_CONTEXT_SLOTS;
|
| builder()->CreateFunctionContext(slot_count);
|
|
|