| Index: src/heap.cc
|
| diff --git a/src/heap.cc b/src/heap.cc
|
| index 533e05d13949043bcb4df7248dc4f9163fd417c0..94136734f16ae23b8191de63adc32efa9f11e7bf 100644
|
| --- a/src/heap.cc
|
| +++ b/src/heap.cc
|
| @@ -3928,7 +3928,7 @@ MaybeObject* Heap::AllocateFunctionContext(int length, JSFunction* function) {
|
| context->set_map(function_context_map());
|
| context->set_closure(function);
|
| context->set_fcontext(context);
|
| - context->set_previous(NULL);
|
| + context->set_previous(function->context());
|
| context->set_extension(NULL);
|
| context->set_global(function->context()->global());
|
| return context;
|
|
|