diff options
author | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-11 14:41:26 +0000 |
---|---|---|
committer | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-11 14:41:26 +0000 |
commit | f4fbe8bf4d1df0530c807072707036a3e20a02f0 (patch) | |
tree | b8ec5d61eda1c86c8118363ef5774ac0ea687adb /webkit | |
parent | b723acc5e3f3f9bbd48ce5ff82ff9a2646229843 (diff) | |
download | chromium_src-f4fbe8bf4d1df0530c807072707036a3e20a02f0.zip chromium_src-f4fbe8bf4d1df0530c807072707036a3e20a02f0.tar.gz chromium_src-f4fbe8bf4d1df0530c807072707036a3e20a02f0.tar.bz2 |
DevTools: Render 'Array' type name for scope variables.
BUG=13253
Review URL: http://codereview.chromium.org/123019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18163 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/glue/devtools/js/devtools.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/webkit/glue/devtools/js/devtools.js b/webkit/glue/devtools/js/devtools.js index ac88652..d78a53a 100644 --- a/webkit/glue/devtools/js/devtools.js +++ b/webkit/glue/devtools/js/devtools.js @@ -894,3 +894,16 @@ WebInspector.UIString = function(string) { } }; })(); + + +// There is no clear way of rendering class name for scope variables yet. +(function OverrideObjectDescribe() { + var oldDescribe = Object.describe; + Object.describe = function(obj, abbreviated) { + var result = oldDescribe.call(Object, obj, abbreviated); + if (result == 'Object' && obj.className) { + return obj.className; + } + return result; + }; +})(); |