Chromium Code Reviews| Index: src/objects.cc |
| diff --git a/src/objects.cc b/src/objects.cc |
| index 2611b57aef1a6aae6f9efa3b137fab0a717d91c0..4031c5c41663e21c60a041f57529a31d34088a9f 100644 |
| --- a/src/objects.cc |
| +++ b/src/objects.cc |
| @@ -12836,6 +12836,14 @@ bool JSObject::HasRealElementProperty(Isolate* isolate, uint32_t index) { |
| } |
| } |
| + if (IsJSGlobalProxy()) { |
| + Object* proto = GetPrototype(); |
| + if (proto->IsNull()) return false; |
| + ASSERT(proto->IsJSGlobalObject()); |
| + // A GlobalProxy's prototype should always be a proper JSObject. |
|
adamk
2013/07/09 21:01:49
This comment is a bit redundant.
|
| + return JSObject::cast(proto)->HasRealElementProperty(isolate, index); |
| + } |
| + |
| return GetElementAttributeWithoutInterceptor(this, index, false) != ABSENT; |
| } |