Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
debugger: prevent crash when backtrace doesn't come back
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Jan 28, 2011
1 parent fbb7478 commit 1f041fe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/_debugger.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1f041fe

Please sign in to comment.