Index: src/runtime/runtime-object.cc |
diff --git a/src/runtime/runtime-object.cc b/src/runtime/runtime-object.cc |
index 0bdde7482c509df9aed274e94738e701c3fb5935..d0d215d43bb18b53fd6213974c81370517118da2 100644 |
--- a/src/runtime/runtime-object.cc |
+++ b/src/runtime/runtime-object.cc |
@@ -193,10 +193,7 @@ MaybeHandle<Object> Runtime::GetPrototype(Isolate* isolate, |
if (PrototypeIterator::GetCurrent(iter)->IsAccessCheckNeeded() && |
!isolate->MayAccess( |
Handle<JSObject>::cast(PrototypeIterator::GetCurrent(iter)))) { |
- isolate->ReportFailedAccessCheck( |
- Handle<JSObject>::cast(PrototypeIterator::GetCurrent(iter))); |
- RETURN_EXCEPTION_IF_SCHEDULED_EXCEPTION(isolate, Object); |
- return isolate->factory()->undefined_value(); |
+ return isolate->factory()->null_value(); |
} |
iter.AdvanceIgnoringProxies(); |
if (PrototypeIterator::GetCurrent(iter)->IsJSProxy()) { |