diff options
author | Selim Gurun <sgurun@google.com> | 2013-07-12 09:35:29 -0700 |
---|---|---|
committer | Selim Gurun <sgurun@google.com> | 2013-07-12 09:40:45 -0700 |
commit | f53dc205fc8ac4f3e92cb554eb15ef0588667a4b (patch) | |
tree | ddf737a6c76e6d7ae1c3ee23c9cb93713ff36256 | |
parent | e192355286f62661c2ccc7c9fe3957105ec05173 (diff) | |
download | android_external_v8-f53dc205fc8ac4f3e92cb554eb15ef0588667a4b.tar.gz android_external_v8-f53dc205fc8ac4f3e92cb554eb15ef0588667a4b.tar.bz2 android_external_v8-f53dc205fc8ac4f3e92cb554eb15ef0588667a4b.zip |
Merge upstream V8 change to fix HasRealIndexedProperty.
Bug: 9720511
Change-Id: I731b49b1bfbeeb9927fb995342f9e7454ce834dc
-rw-r--r-- | src/objects.cc | 7 |
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; |