Skip to content

Commit

Permalink
Check empty call stack
Browse files Browse the repository at this point in the history
  • Loading branch information
3y3 committed Feb 3, 2016
1 parent dc34b5a commit 50dae14
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions v8-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,8 @@ V8Debug.prototype.enableWebkitProtocol = function() {
if (maximumLimit < 0) throw new Error('Incorrect stack trace limit.');
var data = (maximumLimit << scopeBits) | scopeDetails;
var currentCallFrame = DebuggerScript.currentCallFrame(execState, data);
if (!currentCallFrame) return;

return new JavaScriptCallFrame(currentCallFrame);
};

Expand Down

0 comments on commit 50dae14

Please sign in to comment.