Skip to content

Commit 50dae14

Browse files
committed
Check empty call stack
1 parent dc34b5a commit 50dae14

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

v8-debug.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,8 @@ V8Debug.prototype.enableWebkitProtocol = function() {
323323
if (maximumLimit < 0) throw new Error('Incorrect stack trace limit.');
324324
var data = (maximumLimit << scopeBits) | scopeDetails;
325325
var currentCallFrame = DebuggerScript.currentCallFrame(execState, data);
326+
if (!currentCallFrame) return;
327+
326328
return new JavaScriptCallFrame(currentCallFrame);
327329
};
328330

0 commit comments

Comments
 (0)