Revision: 21771
Author:   verwa...@chromium.org
Date:     Wed Jun 11 14:03:13 2014 UTC
Log:      Correctly lookup starting at the holder

BUG=
R=yang...@chromium.org

Review URL: https://codereview.chromium.org/329153002
http://code.google.com/p/v8/source/detail?r=21771

Modified:
 /branches/bleeding_edge/src/api.cc

=======================================
--- /branches/bleeding_edge/src/api.cc  Wed Jun 11 09:59:14 2014 UTC
+++ /branches/bleeding_edge/src/api.cc  Wed Jun 11 14:03:13 2014 UTC
@@ -3518,7 +3518,9 @@
   // 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
v8-dev@googlegroups.com
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 v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to