Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index b96d6257c038a95192061a931a958a42ab06bfaa..095425262a6ee7ed2d893b195e9f7d9b5320c2ee 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -7034,6 +7034,17 @@ MaybeHandle<Object> Object::GetPropertyOrElement(Handle<Object> object, |
return GetProperty(&it); |
} |
+MaybeHandle<Object> Object::SetPropertyOrElement(Handle<Object> object, |
+ Handle<Name> name, |
+ Handle<Object> value, |
+ LanguageMode language_mode, |
+ StoreFromKeyed store_mode) { |
+ LookupIterator it = |
+ LookupIterator::PropertyOrElement(name->GetIsolate(), object, name); |
+ MAYBE_RETURN_NULL(SetProperty(&it, value, language_mode, store_mode)); |
+ return value; |
+} |
+ |
MaybeHandle<Object> Object::GetPropertyOrElement(Handle<Object> receiver, |
Handle<Name> name, |
Handle<JSReceiver> holder) { |