Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index d7bbd02cfebd2a1f19c89cc64b19ece1f4c187dd..be18525e70fe5b35f4aca06da0d75c58f7ce41b3 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -2862,6 +2862,10 @@ void Heap::CreateInitialObjects() { |
cell->set_value(Smi::FromInt(Isolate::kProtectorValid)); |
set_has_instance_protector(*cell); |
+ cell = factory->NewPropertyCell(); |
+ cell->set_value(Smi::FromInt(Isolate::kProtectorValid)); |
+ set_array_iterator_protector(*cell); |
+ |
Handle<Cell> is_concat_spreadable_cell = factory->NewCell( |
handle(Smi::FromInt(Isolate::kProtectorValid), isolate())); |
set_is_concat_spreadable_protector(*is_concat_spreadable_cell); |
@@ -2878,10 +2882,6 @@ void Heap::CreateInitialObjects() { |
handle(Smi::FromInt(Isolate::kProtectorValid), isolate())); |
set_fast_array_iteration_protector(*fast_array_iteration_cell); |
- Handle<Cell> array_iterator_cell = factory->NewCell( |
- handle(Smi::FromInt(Isolate::kProtectorValid), isolate())); |
- set_array_iterator_protector(*array_iterator_cell); |
- |
cell = factory->NewPropertyCell(); |
cell->set_value(Smi::FromInt(Isolate::kProtectorValid)); |
set_array_buffer_neutering_protector(*cell); |