Index: src/objects.cc |
=================================================================== |
--- src/objects.cc (revision 6626) |
+++ src/objects.cc (working copy) |
@@ -6265,6 +6265,13 @@ |
return UNDEFINED_ELEMENT; |
} |
+ if (IsJSGlobalProxy()) { |
+ Object* proto = GetPrototype(); |
+ if (proto->IsNull()) return UNDEFINED_ELEMENT; |
+ ASSERT(proto->IsJSGlobalObject()); |
+ return JSObject::cast(proto)->HasLocalElement(index); |
+ } |
+ |
// Check for lookup interceptor |
if (HasIndexedInterceptor()) { |
return HasElementWithInterceptor(this, index) ? INTERCEPTED_ELEMENT |