| Index: src/heap.cc
|
| diff --git a/src/heap.cc b/src/heap.cc
|
| index e080cde3250b3d2780f4ab53b2538cca641878c5..f6ba4586ade78f80ae0f6b7f19adfef7f9ff1ad3 100644
|
| --- a/src/heap.cc
|
| +++ b/src/heap.cc
|
| @@ -4034,10 +4034,9 @@ MaybeObject* Heap::AllocateBlockContext(JSFunction* function,
|
| SerializedScopeInfo* scope_info) {
|
| Object* result;
|
| { MaybeObject* maybe_result =
|
| - AllocateFixedArray(scope_info->NumberOfContextSlots());
|
| + AllocateFixedArrayWithHoles(scope_info->NumberOfContextSlots());
|
| if (!maybe_result->ToObject(&result)) return maybe_result;
|
| }
|
| - // TODO(keuchel): properly initialize context slots.
|
| Context* context = reinterpret_cast<Context*>(result);
|
| context->set_map(block_context_map());
|
| context->set_closure(function);
|
|
|