Reconfigure on the right holder, which might be a hidden object.
authorToon Verwaest <verwaest@chromium.org>
Thu, 11 Jun 2015 18:51:48 +0000 (20:51 +0200)
committerToon Verwaest <verwaest@chromium.org>
Thu, 11 Jun 2015 18:52:08 +0000 (18:52 +0000)
BUG=v8:4137
LOG=n
R=ishell@chromium.org

Review URL: https://codereview.chromium.org/1178953003.

Cr-Commit-Position: refs/heads/master@{#28959}

src/objects.cc

index 180255f..86f0900 100644 (file)
@@ -4180,9 +4180,11 @@ MaybeHandle<Object> JSObject::ReconfigureAsDataProperty(
         }
 
         if (it->IsElement()) {
-          SetElementCallback(object, it->index(), new_data, attributes);
+          SetElementCallback(it->GetHolder<JSObject>(), it->index(), new_data,
+                             attributes);
         } else {
-          SetPropertyCallback(object, it->name(), new_data, attributes);
+          SetPropertyCallback(it->GetHolder<JSObject>(), it->name(), new_data,
+                              attributes);
         }
         if (is_observed) {
           RETURN_ON_EXCEPTION(