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:
parent
ae639d2ad6
commit
6a8315229f
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user