From 15f719df6514862857e7e987403f3a317e8a37e1 Mon Sep 17 00:00:00 2001 From: "verwaest@chromium.org" Date: Wed, 11 Jun 2014 14:03:13 +0000 Subject: [PATCH] Correctly lookup starting at the holder BUG= R=yangguo@chromium.org Review URL: https://codereview.chromium.org/329153002 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21771 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/api.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/api.cc b/src/api.cc index 91c2856..cc9cd3a 100644 --- a/src/api.cc +++ b/src/api.cc @@ -3518,7 +3518,9 @@ static Local GetPropertyByLookup(i::Isolate* isolate, // If the property being looked up is a callback, it can throw // an exception. EXCEPTION_PREAMBLE(isolate); - i::LookupIterator it(receiver, name); + i::LookupIterator it( + receiver, name, i::Handle(lookup->holder(), isolate), + i::LookupIterator::SKIP_INTERCEPTOR); i::Handle result; has_pending_exception = !i::Object::GetProperty(&it).ToHandle(&result); EXCEPTION_BAILOUT_CHECK(isolate, Local()); -- 2.7.4