Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index e46dd8e7dd0e898142b730e96c1ac100080c907a..59efdf0a89269799f4b9bd5ddc8ef766f04b77e6 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -1121,6 +1121,19 @@ MaybeHandle<Object> Object::GetElement(Isolate* isolate, |
} |
+Handle<Object> Object::GetPrototypeSkipHiddenPrototypes( |
+ Isolate* isolate, Handle<Object> receiver) { |
+ PrototypeIterator iter(isolate, receiver); |
+ while (!iter.IsAtEnd(PrototypeIterator::END_AT_NON_HIDDEN)) { |
+ if (PrototypeIterator::GetCurrent(iter)->IsJSProxy()) { |
+ return PrototypeIterator::GetCurrent(iter); |
+ } |
+ iter.Advance(); |
+ } |
+ return PrototypeIterator::GetCurrent(iter); |
+} |
+ |
+ |
MaybeHandle<Object> Object::GetPropertyOrElement(Handle<Object> object, |
Handle<Name> name) { |
uint32_t index; |