aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelim Gurun <sgurun@google.com>2013-07-12 09:35:29 -0700
committerSelim Gurun <sgurun@google.com>2013-07-12 09:40:45 -0700
commitf53dc205fc8ac4f3e92cb554eb15ef0588667a4b (patch)
treeddf737a6c76e6d7ae1c3ee23c9cb93713ff36256
parente192355286f62661c2ccc7c9fe3957105ec05173 (diff)
downloadv8-f53dc205fc8ac4f3e92cb554eb15ef0588667a4b.tar.gz
Bug: 9720511 Change-Id: I731b49b1bfbeeb9927fb995342f9e7454ce834dc
-rw-r--r--src/objects.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/objects.cc b/src/objects.cc
index 904cf524..a30641b9 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -10102,6 +10102,13 @@ bool JSObject::HasRealElementProperty(uint32_t index) {
}
}
+ if (IsJSGlobalProxy()) {
+ Object* proto = GetPrototype();
+ if (proto->IsNull()) return false;
+ ASSERT(proto->IsJSGlobalObject());
+ return JSObject::cast(proto)->HasRealElementProperty(index);
+ }
+
// Handle [] on String objects.
if (this->IsStringObjectWithCharacterAt(index)) return true;