Index: Source/bindings/core/v8/DebuggerScript.js |
diff --git a/Source/bindings/core/v8/DebuggerScript.js b/Source/bindings/core/v8/DebuggerScript.js |
index dc3405e1cc6361d45cabcb618dd92336719444fc..a776ae9fd25f98f224d4f00cac2b67fcc1023ef9 100644 |
--- a/Source/bindings/core/v8/DebuggerScript.js |
+++ b/Source/bindings/core/v8/DebuggerScript.js |
@@ -228,6 +228,16 @@ DebuggerScript.currentCallFrame = function(execState, data) |
return topFrame; |
} |
+DebuggerScript.currentCallFrameByIndex = function(execState, index) |
+{ |
+ if (index < 0) |
+ return undefined; |
+ var frameCount = execState.frameCount(); |
+ if (index >= frameCount) |
+ return undefined; |
+ return DebuggerScript._frameMirrorToJSCallFrame(execState.frame(index), undefined, DebuggerScript.ScopeInfoDetails.NoScopes); |
+} |
+ |
DebuggerScript.stepIntoStatement = function(execState) |
{ |
execState.prepareStep(Debug.StepAction.StepIn, 1); |