Commit 69e4dc37 authored by verwaest's avatar verwaest Committed by Commit bot

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}
parent 76184292
......@@ -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();
}
......
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