Skip to content

Commit

Permalink
Fix detection of optimized-away values after bug 716647
Browse files Browse the repository at this point in the history
  • Loading branch information
simonlindholm committed Apr 25, 2014
1 parent 88769ad commit 75f76d0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions extension/content/firebug/console/closureInspector.js
Expand Up @@ -37,6 +37,11 @@ var ClosureInspector =
try try
{ {
var ret = scope.getVariable(name); var ret = scope.getVariable(name);
if (ret && ret.optimizedOut)
return OptimizedAway;

// Try to detect optimized-away values. This round-about method is
// needed for Firefox versions prior to 31 (when bug 716647 landed).
if (ret !== undefined) if (ret !== undefined)
return ret; return ret;


Expand Down

0 comments on commit 75f76d0

Please sign in to comment.