| Index: src/heap/heap.cc
|
| diff --git a/src/heap/heap.cc b/src/heap/heap.cc
|
| index 5b47ec8387a9799078b4663f36f2293630ff5965..0c08181324d4de408bd838110e611a5baeba5b5f 100644
|
| --- a/src/heap/heap.cc
|
| +++ b/src/heap/heap.cc
|
| @@ -2789,6 +2789,7 @@ void Heap::CreateInitialObjects() {
|
| // Microtask queue uses the empty fixed array as a sentinel for "empty".
|
| // Number of queued microtasks stored in Isolate::pending_microtask_count().
|
| set_microtask_queue(empty_fixed_array());
|
| + set_weak_refs(empty_fixed_array());
|
|
|
| {
|
| Handle<FixedArray> empty_sloppy_arguments_elements =
|
| @@ -2929,6 +2930,7 @@ bool Heap::RootCanBeWrittenAfterInitialization(Heap::RootListIndex root_index) {
|
| case kScriptListRootIndex:
|
| case kMaterializedObjectsRootIndex:
|
| case kMicrotaskQueueRootIndex:
|
| + case kWeakRefsRootIndex:
|
| case kDetachedContextsRootIndex:
|
| case kWeakObjectToCodeTableRootIndex:
|
| case kWeakNewSpaceObjectToCodeListRootIndex:
|
|
|