Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 0cd8b71a77dcd83161c8ed35d526a7a5cdb325c4..199696384fce63136739b575b2b83453873ca3d4 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -4247,7 +4247,9 @@ MaybeHandle<Object> JSObject::SetOwnPropertyIgnoreAttributes( |
// By clearing the setter we don't have to introduce a lookup to |
// the setter, simply make it unavailable to reflect the |
// attributes. |
- if (attributes & READ_ONLY) new_data->clear_setter(); |
+ if (attributes & READ_ONLY) { |
+ ExecutableAccessorInfo::ClearSetter(new_data); |
+ } |
SetPropertyCallback(object, name, new_data, attributes); |
if (is_observed) { |
RETURN_ON_EXCEPTION( |