am c5327605: Merge "Revert "V8: enable no-pic compiling option""
* commit 'c532760504e991c735370db73387337df5354de0':
Revert "V8: enable no-pic compiling option"
diff --git a/src/objects.cc b/src/objects.cc
index 904cf52..a30641b 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -10102,6 +10102,13 @@
}
}
+ 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;