Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index d16b0e2b72091fcda20e6a6c9a04f205f67b6410..bfdf7b66d0b321c6d840f8a630b4bc5a1e260b99 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -1195,7 +1195,9 @@ MaybeHandle<Object> Object::SetElement(Isolate* isolate, Handle<Object> object, |
uint32_t index, Handle<Object> value, |
LanguageMode language_mode) { |
LookupIterator it(isolate, object, index); |
- return SetProperty(&it, value, language_mode, MAY_BE_STORE_FROM_KEYED); |
+ MAYBE_RETURN_NULL( |
+ SetProperty(&it, value, language_mode, MAY_BE_STORE_FROM_KEYED)); |
+ return value; |
} |