Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index a008b6a3c1c402fb747773f4bfade3490a6231df..ca324603f79bdbbab5b62972c72ab84f948fb31d 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()); |