Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index bfbe558c89f27f52064ff284ae63807dbabd8013..535c99e4dcd993ff20470e013dca75423d7fcf1e 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -3274,6 +3274,15 @@ bool Heap::CreateInitialObjects() { |
} |
set_observation_state(JSObject::cast(obj)); |
+ // Allocate object to hold object microtask state. |
+ { MaybeObject* maybe_obj = AllocateMap(JS_OBJECT_TYPE, JSObject::kHeaderSize); |
+ if (!maybe_obj->ToObject(&obj)) return false; |
+ } |
+ { MaybeObject* maybe_obj = AllocateJSObjectFromMap(Map::cast(obj)); |
+ if (!maybe_obj->ToObject(&obj)) return false; |
+ } |
+ set_microtask_state(JSObject::cast(obj)); |
+ |
{ MaybeObject* maybe_obj = AllocateSymbol(); |
if (!maybe_obj->ToObject(&obj)) return false; |
} |