Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 75850d8c2cc6ee62f3ea94ab1d636a3b7861d963..708135e71724b1f44735ca35a50769a97854413b 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -17087,7 +17087,7 @@ bool SeqOneByteSubStringKey::IsMatch(Object* string) { |
class InternalizedStringKey : public HashTableKey { |
public: |
explicit InternalizedStringKey(Handle<String> string) |
- : string_(string) { } |
+ : string_(String::Flatten(string)) {} |
bool IsMatch(Object* string) override { |
return String::cast(string)->Equals(*string_); |
@@ -17949,7 +17949,7 @@ void StringTable::EnsureCapacityForDeserialization(Isolate* isolate, |
int expected) { |
Handle<StringTable> table = isolate->factory()->string_table(); |
// We need a key instance for the virtual hash function. |
- InternalizedStringKey dummy_key(Handle<String>::null()); |
+ InternalizedStringKey dummy_key(isolate->factory()->empty_string()); |
table = StringTable::EnsureCapacity(table, expected, &dummy_key); |
isolate->heap()->SetRootStringTable(*table); |
} |