Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index b23ec0e38e0db5359cc4a01d69c199ab240769e9..89f679e214a6287c6530abdd901e7d0f88f794df 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -3636,7 +3636,7 @@ Local<Value> v8::Object::GetRealNamedPropertyInPrototypeChain( |
i::PrototypeIterator iter(isolate, self_obj); |
if (iter.IsAtEnd()) return Local<Value>(); |
i::LookupIterator it(i::PrototypeIterator::GetCurrent(iter), key_obj, |
- i::LookupIterator::CHECK_DERIVED_PROPERTY); |
+ i::LookupIterator::PROTOTYPE_CHAIN_PROPERTY); |
return GetPropertyByLookup(&it); |
} |
@@ -3649,7 +3649,7 @@ Local<Value> v8::Object::GetRealNamedProperty(Handle<String> key) { |
i::Handle<i::JSObject> self_obj = Utils::OpenHandle(this); |
i::Handle<i::String> key_obj = Utils::OpenHandle(*key); |
i::LookupIterator it(self_obj, key_obj, |
- i::LookupIterator::CHECK_DERIVED_PROPERTY); |
+ i::LookupIterator::PROTOTYPE_CHAIN_PROPERTY); |
return GetPropertyByLookup(&it); |
} |