summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authorpfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-14 22:31:45 +0000
committerpfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-14 22:31:45 +0000
commitcc3b22f0e594edd70742ddb79dd9dd5c59cf0186 (patch)
tree850a6fcaa79290105bba74e46d4de3ffd54859ee /webkit
parente57d303341aaac9655d73f0022d752f4281f9752 (diff)
downloadchromium_src-cc3b22f0e594edd70742ddb79dd9dd5c59cf0186.zip
chromium_src-cc3b22f0e594edd70742ddb79dd9dd5c59cf0186.tar.gz
chromium_src-cc3b22f0e594edd70742ddb79dd9dd5c59cf0186.tar.bz2
DevTools: Fix autocomplete in the console.
TBR=yurys Review URL: http://codereview.chromium.org/542081 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36286 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/glue/devtools/js/inject_dispatch.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/webkit/glue/devtools/js/inject_dispatch.js b/webkit/glue/devtools/js/inject_dispatch.js
index 9e5699e..151ddb2 100644
--- a/webkit/glue/devtools/js/inject_dispatch.js
+++ b/webkit/glue/devtools/js/inject_dispatch.js
@@ -101,6 +101,14 @@ Object.className = function(obj) {
};
+// TODO(pfeldman): Remove once Object.getOwnPropertyNames is implemented.
+InjectedScript._getPropertyNames = function(object, resultSet)
+{
+ for (var name in object)
+ resultSet[name] = true;
+}
+
+
/**
* A no-op function that is called by debugger agent just to trigger v8
* execution.