Commit 6a831522 authored by Toon Verwaest's avatar Toon Verwaest

Reconfigure on the right holder, which might be a hidden object.

BUG=v8:4137
LOG=n
R=ishell@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#28959}
parent ae639d2a
......@@ -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(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment