Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 9622c8cfc1a7c95c5abe26d15e34a99049e63bfa..996a1a7fb925e2308532a1952ce71b9c7e1d4cb2 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -1187,11 +1187,6 @@ MaybeHandle<Object> Object::GetPrototype(Isolate* isolate, |
Handle<Object> receiver) { |
// We don't expect access checks to be needed on JSProxy objects. |
DCHECK(!receiver->IsAccessCheckNeeded() || receiver->IsJSObject()); |
- Handle<Context> context(isolate->context()); |
- if (receiver->IsAccessCheckNeeded() && |
- !isolate->MayAccess(context, Handle<JSObject>::cast(receiver))) { |
- return isolate->factory()->null_value(); |
- } |
PrototypeIterator iter(isolate, receiver, |
PrototypeIterator::START_AT_RECEIVER); |
do { |