Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 77dbcbdab06ef432cc832dbc6c9aa4cf6fb6a1ce..cdddca8a8fc40ae0094fc0f5e0d281e54f0a9ceb 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -11834,10 +11834,9 @@ void ObjectHashTable::AddEntry(int entry, JSObject* key, Object* value) { |
} |
-void ObjectHashTable::RemoveEntry(int entry) { |
- Object* null_value = GetHeap()->null_value(); |
- set(EntryToIndex(entry), null_value); |
- set(EntryToIndex(entry) + 1, null_value); |
+void ObjectHashTable::RemoveEntry(int entry, Heap* heap) { |
+ set_null(heap, EntryToIndex(entry)); |
+ set_null(heap, EntryToIndex(entry) + 1); |
ElementRemoved(); |
} |