[Pkg-mozext-commits] [firebug] 29/82: Hide optimized-away "arguments" in the DOM panel
David Prévot
taffit at moszumanska.debian.org
Mon Mar 31 22:45:38 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to tag fbtest-1.11.2
in repository firebug.
commit 68e443aef16bca8b7f425007732c8463463bf81e
Author: Simon Lindholm <simon.lindholm10 at gmail.com>
Date: Sat Dec 29 17:58:30 2012 +0100
Hide optimized-away "arguments" in the DOM panel
---
extension/content/firebug/console/closureInspector.js | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/extension/content/firebug/console/closureInspector.js b/extension/content/firebug/console/closureInspector.js
index 353ce57..e5f0b6d 100644
--- a/extension/content/firebug/console/closureInspector.js
+++ b/extension/content/firebug/console/closureInspector.js
@@ -324,17 +324,24 @@ var ClosureInspector =
var scopeDataHolder = Object.create(ScopeProxy.prototype);
scopeDataHolder.scope = scope;
+ var self = this;
var names, namesSet;
var lazyCreateNames = function()
{
lazyCreateNames = function() {};
names = scope.names();
+
+ // "arguments" is almost always present and optimized away, so hide it
+ // for a nicer display.
+ var ind = names.indexOf("arguments");
+ if (ind !== -1 && self.getVariableOrOptimizedAway(scope, "arguments") === OptimizedAway)
+ names.splice(ind, 1);
+
namesSet = new Set;
for (var i = 0; i < names.length; ++i)
namesSet.add(names[i]);
};
- var self = this;
return Proxy.create({
desc: function(name)
{
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/firebug.git
More information about the Pkg-mozext-commits
mailing list