Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 4eeb51d67c58d1a066dbd66d4abaf0eba8ea9dab..5941186dbdf9fed6a48669ae377c38e1ce7f5fcd 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -5238,6 +5238,13 @@ MaybeHandle<Object> JSReceiver::DeleteElement(Handle<JSReceiver> object, |
MaybeHandle<Object> JSReceiver::DeleteProperty(Handle<JSReceiver> object, |
Handle<Name> name, |
LanguageMode language_mode) { |
+ LookupIterator it(object, name, LookupIterator::HIDDEN); |
+ return JSObject::DeleteProperty(&it, language_mode); |
+} |
+ |
+ |
+MaybeHandle<Object> JSReceiver::DeletePropertyOrElement( |
+ Handle<JSReceiver> object, Handle<Name> name, LanguageMode language_mode) { |
LookupIterator it = LookupIterator::PropertyOrElement( |
name->GetIsolate(), object, name, LookupIterator::HIDDEN); |
return JSObject::DeleteProperty(&it, language_mode); |