| Index: src/isolate.cc
|
| diff --git a/src/isolate.cc b/src/isolate.cc
|
| index d81e50e2235399bec8a10a9eaa925f027b93c3c8..a9a5161dda61f4298230cf3811e4b1a4ceff54ba 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->IsJSGlobalProxy() || receiver->IsAccessCheckNeeded());
|
| + ASSERT(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->IsJSGlobalProxy() || receiver->IsAccessCheckNeeded());
|
| + ASSERT(receiver->IsAccessCheckNeeded());
|
| // Check for compatibility between the security tokens in the
|
| // current lexical context and the accessed object.
|
| ASSERT(context());
|
|
|