Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1755)

Unified Diff: src/objects-inl.h

Issue 1521953002: [proxies] fix access issue when having proxies on the prototype-chain of global objects. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: ppc code mess Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 {
« no previous file with comments | « src/mips64/code-stubs-mips64.cc ('k') | src/ppc/code-stubs-ppc.cc » ('j') | src/prototype.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698