[Pkg-mozext-commits] [firebug] 26/82: Don't allow setting optimized-away closure variables

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 f1bc20ab1578c2521c3ba200eb70754809eb6547
Author: Simon Lindholm <simon.lindholm10 at gmail.com>
Date:   Sat Dec 29 15:52:50 2012 +0100

    Don't allow setting optimized-away closure variables
---
 extension/content/firebug/console/closureInspector.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/extension/content/firebug/console/closureInspector.js b/extension/content/firebug/console/closureInspector.js
index b4cbe21..659ec2d 100644
--- a/extension/content/firebug/console/closureInspector.js
+++ b/extension/content/firebug/console/closureInspector.js
@@ -289,6 +289,8 @@ var ClosureInspector =
                     var scope = env.find(name);
                     if (!scope)
                         throw new Error("can't create new closure variables");
+                    if (self.getVariableOrOptimizedAway(scope, name) === OptimizedAway)
+                        throw new Error("can't set optimized-away closure variables");
                     scope.setVariable(name, dvalue);
                 }
             };

-- 
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