Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index 899d701a856d28024ab5a95fd419f0be435e58d1..07ba97abaf3021e1210287d9b7b47c619c2dcfa4 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -3399,6 +3399,11 @@ bool Heap::CreateInitialObjects() { |
} |
set_natives_source_cache(FixedArray::cast(obj)); |
+ { MaybeObject* maybe_obj = AllocateCell(undefined_value()); |
+ if (!maybe_obj->ToObject(&obj)) return false; |
+ } |
+ set_undefined_cell(Cell::cast(obj)); |
+ |
// Allocate object to hold object observation state. |
{ MaybeObject* maybe_obj = AllocateMap(JS_OBJECT_TYPE, JSObject::kHeaderSize); |
if (!maybe_obj->ToObject(&obj)) return false; |