| Index: src/runtime.cc
|
| diff --git a/src/runtime.cc b/src/runtime.cc
|
| index ff099fc9e6db88e1597f37d80c1e0dccd0eb25ac..f629970ff28209a568124a23ef07bed9194cbe3c 100644
|
| --- a/src/runtime.cc
|
| +++ b/src/runtime.cc
|
| @@ -11374,6 +11374,11 @@ static Handle<Context> CopyWithContextChain(Isolate* isolate,
|
| SerializedScopeInfo::cast(current->extension()));
|
| new_current =
|
| isolate->factory()->NewBlockContext(function, new_previous, scope_info);
|
| + // Copy context slots.
|
| + int num_context_slots = scope_info->NumberOfContextSlots();
|
| + for (int i = Context::MIN_CONTEXT_SLOTS; i < num_context_slots; ++i) {
|
| + new_current->set(i, current->get(i));
|
| + }
|
| } else {
|
| ASSERT(current->IsWithContext());
|
| Handle<JSObject> extension(JSObject::cast(current->extension()));
|
|
|