Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(606)

Unified Diff: src/objects.cc

Issue 1580723003: Gracefully handle proxies in AllCanWrite(). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add regression test. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/mjsunit/harmony/regress/regress-576662.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index 510e6d3aef46ff963aeea15fe65263258b97402a..e3b8c7d2b93ca6e0df530a700430180617d77bdb 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -1366,7 +1366,7 @@ Maybe<PropertyAttributes> JSObject::GetPropertyAttributesWithFailedAccessCheck(
// static
bool JSObject::AllCanWrite(LookupIterator* it) {
- for (; it->IsFound(); it->Next()) {
+ for (; it->IsFound() && it->state() != LookupIterator::JSPROXY; it->Next()) {
if (it->state() == LookupIterator::ACCESSOR) {
Handle<Object> accessors = it->GetAccessors();
if (accessors->IsAccessorInfo()) {
« no previous file with comments | « no previous file | test/mjsunit/harmony/regress/regress-576662.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698