Allow setting accessor infos over read-only but configurable properties.
BUG= Review URL: https://codereview.chromium.org/1228373004 Cr-Commit-Position: refs/heads/master@{#29655}
This commit is contained in:
parent
76184292b3
commit
69e4dc3707
@ -6338,7 +6338,7 @@ MaybeHandle<Object> JSObject::SetAccessor(Handle<JSObject> object,
|
||||
|
||||
// ES5 forbids turning a property into an accessor if it's not
|
||||
// configurable. See 8.6.1 (Table 5).
|
||||
if (it.IsFound() && (it.IsReadOnly() || !it.IsConfigurable())) {
|
||||
if (it.IsFound() && !it.IsConfigurable()) {
|
||||
return it.factory()->undefined_value();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user