Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index efe35ed30ecab035dc602df3b821b8f9002fd238..9db2a2fd067c0746d4c1b8fb42754072f51a0699 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -4189,7 +4189,9 @@ MaybeHandle<Object> JSObject::DefineOwnPropertyIgnoreAttributes( |
case LookupIterator::ACCESS_CHECK: |
if (!it->HasAccess()) { |
- return SetPropertyWithFailedAccessCheck(it, value); |
+ it->isolate()->ReportFailedAccessCheck(it->GetHolder<JSObject>()); |
+ RETURN_EXCEPTION_IF_SCHEDULED_EXCEPTION(it->isolate(), Object); |
+ return value; |
} |
break; |