Fix crash in debugger

v0.7.4-release
Ryan Dahl 2011-05-05 16:52:05 -07:00
parent ad487d3226
commit fc8afd45c7
1 changed files with 4 additions and 1 deletions

View File

@ -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);