Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index a9a5161dda61f4298230cf3811e4b1a4ceff54ba..d81e50e2235399bec8a10a9eaa925f027b93c3c8 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -778,7 +778,7 @@ static MayAccessDecision MayAccessPreCheck(Isolate* isolate, |
bool Isolate::MayNamedAccess(JSObject* receiver, Object* key, |
v8::AccessType type) { |
- ASSERT(receiver->IsAccessCheckNeeded()); |
+ ASSERT(receiver->IsJSGlobalProxy() || receiver->IsAccessCheckNeeded()); |
// The callers of this method are not expecting a GC. |
DisallowHeapAllocation no_gc; |
@@ -829,7 +829,7 @@ bool Isolate::MayNamedAccess(JSObject* receiver, Object* key, |
bool Isolate::MayIndexedAccess(JSObject* receiver, |
uint32_t index, |
v8::AccessType type) { |
- ASSERT(receiver->IsAccessCheckNeeded()); |
+ ASSERT(receiver->IsJSGlobalProxy() || receiver->IsAccessCheckNeeded()); |
// Check for compatibility between the security tokens in the |
// current lexical context and the accessed object. |
ASSERT(context()); |