Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 9c93a811804ea99a46f764932e47a6e0aa95526c..dd2723029a15d5873f73e402678ebbc16c6f2e5b 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -5339,32 +5339,29 @@ Maybe<bool> JSObject::DefineOwnPropertyIgnoreAttributes( |
CERTAINLY_NOT_STORE_FROM_KEYED); |
} |
- |
MaybeHandle<Object> JSObject::SetOwnPropertyIgnoreAttributes( |
Handle<JSObject> object, Handle<Name> name, Handle<Object> value, |
- PropertyAttributes attributes, AccessorInfoHandling handling) { |
+ PropertyAttributes attributes) { |
DCHECK(!value->IsTheHole()); |
LookupIterator it(object, name, LookupIterator::OWN); |
- return DefineOwnPropertyIgnoreAttributes(&it, value, attributes, handling); |
+ return DefineOwnPropertyIgnoreAttributes(&it, value, attributes); |
} |
- |
MaybeHandle<Object> JSObject::SetOwnElementIgnoreAttributes( |
Handle<JSObject> object, uint32_t index, Handle<Object> value, |
- PropertyAttributes attributes, AccessorInfoHandling handling) { |
+ PropertyAttributes attributes) { |
Isolate* isolate = object->GetIsolate(); |
LookupIterator it(isolate, object, index, LookupIterator::OWN); |
- return DefineOwnPropertyIgnoreAttributes(&it, value, attributes, handling); |
+ return DefineOwnPropertyIgnoreAttributes(&it, value, attributes); |
} |
- |
MaybeHandle<Object> JSObject::DefinePropertyOrElementIgnoreAttributes( |
Handle<JSObject> object, Handle<Name> name, Handle<Object> value, |
- PropertyAttributes attributes, AccessorInfoHandling handling) { |
+ PropertyAttributes attributes) { |
Isolate* isolate = object->GetIsolate(); |
LookupIterator it = LookupIterator::PropertyOrElement(isolate, object, name, |
LookupIterator::OWN); |
- return DefineOwnPropertyIgnoreAttributes(&it, value, attributes, handling); |
+ return DefineOwnPropertyIgnoreAttributes(&it, value, attributes); |
} |
@@ -6602,8 +6599,8 @@ Maybe<bool> JSReceiver::ValidateAndApplyPropertyDescriptor( |
? desc->value() |
: Handle<Object>::cast(isolate->factory()->undefined_value())); |
MaybeHandle<Object> result = |
- JSObject::DefineOwnPropertyIgnoreAttributes( |
- it, value, desc->ToAttributes(), JSObject::DONT_FORCE_FIELD); |
+ JSObject::DefineOwnPropertyIgnoreAttributes(it, value, |
+ desc->ToAttributes()); |
if (result.is_null()) return Nothing<bool>(); |
} |
} else { |
@@ -6795,8 +6792,8 @@ Maybe<bool> JSReceiver::ValidateAndApplyPropertyDescriptor( |
? current->value() |
: Handle<Object>::cast( |
isolate->factory()->undefined_value())); |
- MaybeHandle<Object> result = JSObject::DefineOwnPropertyIgnoreAttributes( |
- it, value, attrs, JSObject::DONT_FORCE_FIELD); |
+ MaybeHandle<Object> result = |
+ JSObject::DefineOwnPropertyIgnoreAttributes(it, value, attrs); |
if (result.is_null()) return Nothing<bool>(); |
} else { |
DCHECK(desc_is_accessor_descriptor || |
@@ -6860,10 +6857,9 @@ Maybe<bool> JSObject::CreateDataProperty(LookupIterator* it, |
return Just(false); |
} |
- RETURN_ON_EXCEPTION_VALUE( |
- it->isolate(), |
- DefineOwnPropertyIgnoreAttributes(it, value, NONE, DONT_FORCE_FIELD), |
- Nothing<bool>()); |
+ RETURN_ON_EXCEPTION_VALUE(it->isolate(), |
+ DefineOwnPropertyIgnoreAttributes(it, value, NONE), |
+ Nothing<bool>()); |
return Just(true); |
} |