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

Unified Diff: src/isolate.cc

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/isolate.cc
diff --git a/src/isolate.cc b/src/isolate.cc
index 927989f367f053979a87e6c357433581e1074a0d..3fa26d977f1b8d59932095c1735137adf236878d 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -779,10 +779,10 @@ bool Isolate::MayAccess(Handle<Context> accessing_context,
// Check for compatibility between the security tokens in the
// current lexical context and the accessed object.
+ // During bootstrapping, callback functions are not enabled yet.
+ if (bootstrapper()->IsActive()) return true;
{
DisallowHeapAllocation no_gc;
- // During bootstrapping, callback functions are not enabled yet.
- if (bootstrapper()->IsActive()) return true;
if (receiver->IsJSGlobalProxy()) {
Object* receiver_context =
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/mips/code-stubs-mips.cc » ('j') | src/prototype.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698