diff options
Diffstat (limited to 'deps/v8/test/mjsunit/debug-stepin-call-function-stub.js')
-rw-r--r-- | deps/v8/test/mjsunit/debug-stepin-call-function-stub.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/deps/v8/test/mjsunit/debug-stepin-call-function-stub.js b/deps/v8/test/mjsunit/debug-stepin-call-function-stub.js index 053b8bfe8a..b3e385bfb5 100644 --- a/deps/v8/test/mjsunit/debug-stepin-call-function-stub.js +++ b/deps/v8/test/mjsunit/debug-stepin-call-function-stub.js @@ -42,11 +42,11 @@ var step_in_count = 2; function listener(event, exec_state, event_data, data) { try { if (event == Debug.DebugEvent.Break) { - if (state == 0) { + if (state < step_in_count) { // Step into f(). - exec_state.prepareStep(Debug.StepAction.StepIn, step_in_count); - state = 2; - } else if (state == 2) { + exec_state.prepareStep(Debug.StepAction.StepIn); + state++; + } else { assertEquals(expected_source_line_text, event_data.sourceLineText()); assertEquals(expected_function_name, event_data.func().name()); |