mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
debugger: prevent crash when backtrace doesn't come back
This commit is contained in:
1 parent
fbb74784b5
commit
1f041fe73e
1 file changed
+6
@@ -261,6 +261,12 @@ Client.prototype.reqEval = function(expression, cb) {
|
||||
|
||||
// Otherwise we need to get the current frame to see which scopes it has.
|
||||
this.reqBacktrace(function(bt) {
|
||||
if (!bt.frames) {
|
||||
// ??
|
||||
cb({});
|
||||
return;
|
||||
}
|
||||
|
||||
var frame = bt.frames[self.currentFrame];
|
||||
|
||||
var evalFrames = frame.scopes.map(function(s) {
|
||||
|
||||
Reference in new issue
Block a user