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

Unified Diff: src/objects.cc

Issue 8161014: Change implementation of JSObject::HasHiddenProperties to work as before 9510. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 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 | « no previous file | no next file » | 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 b4db9e5605a9212851a4b46cd4fbefadde2d8685..674bb9d756966d7deb0a8c4904f1c9b2b2d9f230 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -3425,9 +3425,9 @@ void JSObject::DeleteHiddenProperty(String* key) {
bool JSObject::HasHiddenProperties() {
- LookupResult lookup;
- LocalLookupRealNamedProperty(GetHeap()->hidden_symbol(), &lookup);
- return lookup.IsFound();
+ return GetPropertyAttributePostInterceptor(this,
+ GetHeap()->hidden_symbol(),
+ false) != ABSENT;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698