mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
Fix crash in debugger
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user