| Index: src/objects.cc
|
| ===================================================================
|
| --- src/objects.cc (revision 6645)
|
| +++ src/objects.cc (working copy)
|
| @@ -6679,6 +6679,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
|
|
|