[Pkg-mozext-commits] [firebug] 30/82: Make optimized-away variables read-only 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 6e129d3c8e5bea6065d0c2cab7bce839da71eaa0
Author: Simon Lindholm <simon.lindholm10 at gmail.com>
Date: Sat Dec 29 18:08:32 2012 +0100
Make optimized-away variables read-only in the DOM panel
---
extension/content/firebug/console/closureInspector.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/extension/content/firebug/console/closureInspector.js b/extension/content/firebug/console/closureInspector.js
index e5f0b6d..7d91676 100644
--- a/extension/content/firebug/console/closureInspector.js
+++ b/extension/content/firebug/console/closureInspector.js
@@ -347,18 +347,18 @@ var ClosureInspector =
{
if (!this.has(name))
return;
+ var dval = self.getVariableOrOptimizedAway(scope, name);
return {
get: function() {
- var dval = self.getVariableOrOptimizedAway(scope, name);
if (self.isSimple(dval))
return dval;
var uwWin = Wrapper.getContentView(win);
return self.unwrap(uwWin, dwin, dval);
},
- set: function(value) {
- var dval = dwin.makeDebuggeeValue(value);
+ set: (dval === OptimizedAway ? undefined : function(value) {
+ dval = dwin.makeDebuggeeValue(value);
scope.setVariable(name, dval);
- }
+ })
};
},
has: 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