| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index 026f01d826542960581dc4c58a39e76b57a07184..010d8da501e1ae81ec23176663ff136932bd8f58 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -6685,7 +6685,9 @@ Maybe<bool> JSObject::CreateDataProperty(LookupIterator* it,
|
| Isolate* isolate = receiver->GetIsolate();
|
|
|
| if (it->IsFound()) {
|
| - if (!it->IsConfigurable()) {
|
| + Maybe<PropertyAttributes> attributes = GetPropertyAttributes(it);
|
| + MAYBE_RETURN(attributes, Nothing<bool>());
|
| + if ((attributes.FromJust() & DONT_DELETE) != 0) {
|
| RETURN_FAILURE(
|
| isolate, should_throw,
|
| NewTypeError(MessageTemplate::kRedefineDisallowed, it->GetName()));
|
|
|