Index: src/runtime/runtime-object.cc |
diff --git a/src/runtime/runtime-object.cc b/src/runtime/runtime-object.cc |
index c63690ee8c0e1c2b97d1b6463ae084aa0ae1f005..4c11b15526376e32e2ae3989c36649d070b31745 100644 |
--- a/src/runtime/runtime-object.cc |
+++ b/src/runtime/runtime-object.cc |
@@ -705,7 +705,9 @@ RUNTIME_FUNCTION(Runtime_HasOwnProperty) { |
// handle all cases directly (without this custom fast path). |
Maybe<bool> maybe = Nothing<bool>(); |
if (key_is_array_index) { |
- maybe = JSObject::HasOwnElement(js_obj, index); |
+ LookupIterator it(js_obj->GetIsolate(), js_obj, index, |
+ LookupIterator::HIDDEN); |
+ maybe = JSReceiver::HasProperty(&it); |
} else { |
maybe = JSObject::HasRealNamedProperty(js_obj, key); |
} |