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

Unified Diff: src/objects.cc

Issue 672323003: Widen definition of %HasComplexElements() to include non-enumerability (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rename test Created 6 years, 2 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 | « src/objects.h ('k') | test/mjsunit/regress/regress-shift-enumerable.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 3d18e3d8acb54503d51f913c375bac97d50a9a8a..81eec5e3df5cf87ec111ee876bc222f5881f2c63 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -15295,7 +15295,7 @@ bool Dictionary<Derived, Shape, Key>::HasComplexElements() {
if (details.IsDeleted()) continue;
if (details.type() == CALLBACKS) return true;
PropertyAttributes attr = details.attributes();
- if (attr & (READ_ONLY | DONT_DELETE)) return true;
+ if (attr & (READ_ONLY | DONT_DELETE | DONT_ENUM)) return true;
}
}
return false;
« no previous file with comments | « src/objects.h ('k') | test/mjsunit/regress/regress-shift-enumerable.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698