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

Unified Diff: webkit/glue/devtools/js/inject.js

Issue 160385: DevTools: Do not list getter functions in object properties. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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: webkit/glue/devtools/js/inject.js
===================================================================
--- webkit/glue/devtools/js/inject.js (revision 22046)
+++ webkit/glue/devtools/js/inject.js (working copy)
@@ -98,6 +98,10 @@
!obj.hasOwnProperty(name)) {
continue;
}
+ if (obj['__lookupGetter__'] && obj.__lookupGetter__(name)) {
+ continue;
+ }
+
var value = obj[name];
var type = typeof value;
result.push(type);
« 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