Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 3d5987c3df73788b90f4939cd5d8faced1f04e6c..f4522db01d9e2fadba75d3e0dc9c4ffe315e1877 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -3094,25 +3094,6 @@ MaybeHandle<Object> JSObject::SetPropertyViaPrototypes( |
*done = true; |
if (!result.IsReadOnly()) { |
Handle<Object> callback_object(result.GetCallbackObject(), isolate); |
- // Only store via executable access info setters if the holder is the |
- // receiver or on its hidden prototype chain. |
- if (callback_object->IsExecutableAccessorInfo()) { |
- Handle<JSObject> current = object; |
- while (*current != result.holder()) { |
- // There is a callbacks holder, so we are guaranteed that all |
- // objects in between are JSObjects. |
- Handle<JSObject> prototype( |
- JSObject::cast(current->GetPrototype())); |
- if (!current->IsJSGlobalProxy() && |
- !prototype->map()->is_hidden_prototype()) { |
- *done = false; |
- break; |
- } |
- current = prototype; |
- } |
- // Break out of the switch after breaking out of the loop above. |
- if (*current != result.holder()) break; |
- } |
return SetPropertyWithCallback(object, name, value, |
handle(result.holder()), |
callback_object, strict_mode); |