Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 8254ee7e9efcab696058f80d976d832c5bb27f9e..80cfd03060cbf05b2ea3ca712aebdb5a00d38b0a 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -16857,6 +16857,16 @@ void HashTable<Derived, Shape, Key>::Rehash(Key key) { |
} |
} |
} |
+ // Wipe deleted entries. |
+ Heap* heap = GetHeap(); |
+ Object* the_hole = heap->the_hole_value(); |
+ Object* undefined = heap->undefined_value(); |
+ for (uint32_t current = 0; current < capacity; current++) { |
+ if (get(EntryToIndex(current)) == the_hole) { |
+ set(EntryToIndex(current), undefined); |
+ } |
+ } |
+ SetNumberOfDeletedElements(0); |
} |