| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index 4d08b7999ed27c317b41109f381eafb8d25575c3..01c0831b4ca5001950197e3931dc8a38a5d65889 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -4093,7 +4093,8 @@ void JSObject::AddProperty(Handle<JSObject> object, Handle<Name> name,
|
| ASSERT(!object->IsJSProxy());
|
| ASSERT(!name->AsArrayIndex(&index));
|
| LookupIterator it(object, name, LookupIterator::CHECK_OWN_REAL);
|
| - GetPropertyAttributes(&it);
|
| + Maybe<PropertyAttributes> maybe = GetPropertyAttributes(&it);
|
| + ASSERT(maybe.has_value);
|
| ASSERT(!it.IsFound());
|
| ASSERT(object->map()->is_extensible());
|
| #endif
|
|
|