| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index e3b8c7d2b93ca6e0df530a700430180617d77bdb..09a16ef720a09cc0bbbf6d4af16dbd57973ca174 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -6507,7 +6507,7 @@ Maybe<bool> JSReceiver::OrdinaryDefineOwnProperty(Isolate* isolate,
|
| if (!it.HasAccess()) {
|
| isolate->ReportFailedAccessCheck(it.GetHolder<JSObject>());
|
| RETURN_VALUE_IF_SCHEDULED_EXCEPTION(isolate, Nothing<bool>());
|
| - return Just(false);
|
| + return Just(true);
|
| }
|
| it.Next();
|
| }
|
| @@ -7674,7 +7674,6 @@ Maybe<bool> JSObject::PreventExtensions(Handle<JSObject> object,
|
| !isolate->MayAccess(handle(isolate->context()), object)) {
|
| isolate->ReportFailedAccessCheck(object);
|
| RETURN_VALUE_IF_SCHEDULED_EXCEPTION(isolate, Nothing<bool>());
|
| - UNREACHABLE();
|
| RETURN_FAILURE(isolate, should_throw,
|
| NewTypeError(MessageTemplate::kNoAccess));
|
| }
|
| @@ -7822,7 +7821,6 @@ Maybe<bool> JSObject::PreventExtensionsWithTransition(
|
| !isolate->MayAccess(handle(isolate->context()), object)) {
|
| isolate->ReportFailedAccessCheck(object);
|
| RETURN_VALUE_IF_SCHEDULED_EXCEPTION(isolate, Nothing<bool>());
|
| - UNREACHABLE();
|
| RETURN_FAILURE(isolate, should_throw,
|
| NewTypeError(MessageTemplate::kNoAccess));
|
| }
|
| @@ -15542,7 +15540,8 @@ Maybe<bool> JSObject::SetPrototypeUnobserved(Handle<JSObject> object,
|
| !isolate->MayAccess(handle(isolate->context()), object)) {
|
| isolate->ReportFailedAccessCheck(object);
|
| RETURN_VALUE_IF_SCHEDULED_EXCEPTION(isolate, Nothing<bool>());
|
| - UNREACHABLE();
|
| + RETURN_FAILURE(isolate, should_throw,
|
| + NewTypeError(MessageTemplate::kNoAccess));
|
| }
|
| } else {
|
| DCHECK(!object->IsAccessCheckNeeded());
|
|
|