Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 4424b629339b83965ae8142c29b0ad801bb6cc9b..d68b8722dc67d417c6d65a35fb97df0b88445a42 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -8407,14 +8407,14 @@ MaybeObject* JSObject::SetDictionaryElement(uint32_t index, |
return isolate->Throw(*error); |
} |
} |
- Object* new_dictionary; |
+ FixedArrayBase* new_dictionary; |
MaybeObject* maybe = dictionary->AtNumberPut(index, value); |
- if (!maybe->ToObject(&new_dictionary)) return maybe; |
+ if (!maybe->To<FixedArrayBase>(&new_dictionary)) return maybe; |
if (dictionary != NumberDictionary::cast(new_dictionary)) { |
if (is_arguments) { |
elements->set(1, new_dictionary); |
} else { |
- set_elements(HeapObject::cast(new_dictionary)); |
+ set_elements(new_dictionary); |
} |
dictionary = NumberDictionary::cast(new_dictionary); |
} |