Reviewers: Yang, Igor Sheludko,
Message:
PTAL
Description:
Correctly lookup starting at the holder
BUG=
Please review this at https://codereview.chromium.org/329153002/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+3, -1 lines):
M src/api.cc
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index
91c28566c00d389a2f871c73fc28567e8aae564c..cc9cd3ae9f60820190948cf403fda7f349a9d9cb
100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -3518,7 +3518,9 @@ static Local<Value> 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<i::JSReceiver>(lookup->holder(), isolate),
+ i::LookupIterator::SKIP_INTERCEPTOR);
i::Handle<i::Object> result;
has_pending_exception = !i::Object::GetProperty(&it).ToHandle(&result);
EXCEPTION_BAILOUT_CHECK(isolate, Local<Value>());
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.