Chromium Code Reviews| Index: src/debug-debugger.js |
| diff --git a/src/debug-debugger.js b/src/debug-debugger.js |
| index a588b4c21d79d0a12e9163505471cb48191bb520..c56f3d7cc78a7cecf079c76418875b7a926eb5bf 100644 |
| --- a/src/debug-debugger.js |
| +++ b/src/debug-debugger.js |
| @@ -957,12 +957,16 @@ function ExecutionState(break_id) { |
| this.selected_frame = 0; |
| } |
| -ExecutionState.prototype.prepareStep = function(opt_action, opt_count) { |
| +ExecutionState.prototype.prepareStep = function(opt_action, opt_count, opt_callframe) { |
|
Yang
2013/09/05 15:19:54
80 char limit.
Peter.Rybin
2013/09/05 16:58:21
Done.
|
| var action = Debug.StepAction.StepIn; |
| if (!IS_UNDEFINED(opt_action)) action = %ToNumber(opt_action); |
| var count = opt_count ? %ToNumber(opt_count) : 1; |
| + var callFrameId = 0; |
| + if (!IS_UNDEFINED(opt_callframe)) { |
| + callFrameId = opt_callframe.details_.frameId(); |
| + } |
| - return %PrepareStep(this.break_id, action, count); |
| + return %PrepareStep(this.break_id, action, count, callFrameId); |
| }; |
| ExecutionState.prototype.evaluateGlobal = function(source, disable_break, |