Browse Source

Fix crash in debugger

v0.7.4-release
Ryan Dahl 14 years ago
parent
commit
fc8afd45c7
  1. 5
      lib/_debugger.js

5
lib/_debugger.js

@ -291,7 +291,10 @@ Client.prototype.reqEval = function(expression, cb) {
var frame = bt.frames[self.currentFrame];
var evalFrames = frame.scopes.map(function(s) {
return bt.frames[s.index].index;
if (!s) return;
var x = bt.frames[s.index];
if (!x) return;
return x.index;
});
self._reqFramesEval(expression, evalFrames, cb);

Loading…
Cancel
Save