Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index 6e6da98d31e2842f202bd0c74132b77323c065b1..6a78a734f2a37accaa45aee0ee74e3ec3e2428ca 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -3346,6 +3346,8 @@ void Heap::CreateInitialObjects() { |
*WeakHashTable::New(isolate(), 16, USE_DEFAULT_MINIMUM_CAPACITY, |
TENURED)); |
+ set_script_list(Smi::FromInt(0)); |
+ |
Handle<SeededNumberDictionary> slow_element_dictionary = |
SeededNumberDictionary::New(isolate(), 0, TENURED); |
slow_element_dictionary->set_requires_slow_elements(); |
@@ -3414,6 +3416,7 @@ bool Heap::RootCanBeWrittenAfterInitialization(Heap::RootListIndex root_index) { |
case kPolymorphicCodeCacheRootIndex: |
case kEmptyScriptRootIndex: |
case kSymbolRegistryRootIndex: |
+ case kScriptListRootIndex: |
case kMaterializedObjectsRootIndex: |
case kAllocationSitesScratchpadRootIndex: |
case kMicrotaskQueueRootIndex: |