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}
This commit is contained in:
Toon Verwaest 2015-06-11 20:51:48 +02:00
parent ae639d2ad6
commit 6a8315229f

View File

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