Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 78f83c45c98ee2051b4019f47446f1e908705cae..53de30e12a3ff28b8476a55b00cc1f98b7466d64 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -12864,11 +12864,11 @@ Object* ObjectHashTable::Lookup(Object* key) { |
// If the object does not have an identity hash, it was never used as a key. |
{ MaybeObject* maybe_hash = key->GetHash(OMIT_CREATION); |
if (maybe_hash->ToObjectUnchecked()->IsUndefined()) { |
- return GetHeap()->undefined_value(); |
+ return GetHeap()->the_hole_value(); |
} |
} |
int entry = FindEntry(key); |
- if (entry == kNotFound) return GetHeap()->undefined_value(); |
+ if (entry == kNotFound) return GetHeap()->the_hole_value(); |
return get(EntryToIndex(entry) + 1); |
} |
@@ -12885,7 +12885,7 @@ MaybeObject* ObjectHashTable::Put(Object* key, Object* value) { |
int entry = FindEntry(key); |
// Check whether to perform removal operation. |
- if (value->IsUndefined()) { |
+ if (value->IsTheHole()) { |
if (entry == kNotFound) return this; |
RemoveEntry(entry); |
return Shrink(key); |