Revision: 23651
Author: [email protected]
Date: Wed Sep 3 12:16:09 2014 UTC
Log: Enable access checks when loading properties through the API
BUG=
[email protected]
Review URL: https://codereview.chromium.org/532683002
https://code.google.com/p/v8/source/detail?r=23651
Modified:
/branches/bleeding_edge/src/api.cc
=======================================
--- /branches/bleeding_edge/src/api.cc Tue Sep 2 09:36:37 2014 UTC
+++ /branches/bleeding_edge/src/api.cc Wed Sep 3 12:16:09 2014 UTC
@@ -3612,7 +3612,7 @@
if (iter.IsAtEnd()) return Local<Value>();
i::Handle<i::Object> proto = i::PrototypeIterator::GetCurrent(iter);
i::LookupIterator it(self_obj, key_obj,
i::Handle<i::JSReceiver>::cast(proto),
- i::LookupIterator::PROTOTYPE_CHAIN_PROPERTY);
+
i::LookupIterator::PROTOTYPE_CHAIN_SKIP_INTERCEPTOR);
return GetPropertyByLookup(&it);
}
@@ -3625,7 +3625,7 @@
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::PROTOTYPE_CHAIN_PROPERTY);
+
i::LookupIterator::PROTOTYPE_CHAIN_SKIP_INTERCEPTOR);
return GetPropertyByLookup(&it);
}
--
--
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.