Index: test/mjsunit/debug-stepframe.js |
diff --git a/test/mjsunit/debug-stepframe.js b/test/mjsunit/debug-stepframe.js |
index f7983c010e07a8425d88ae8beb85330a943c83e6..8d9f959e78756c422c5845ac446a63dce6d244a1 100644 |
--- a/test/mjsunit/debug-stepframe.js |
+++ b/test/mjsunit/debug-stepframe.js |
@@ -82,7 +82,6 @@ Object.defineProperty(o, "set", { set : set }); |
Debug = debug.Debug; |
var break_count = 0 |
var exception = null; |
-var step_size; |
function listener(event, exec_state, event_data, data) { |
if (event != Debug.DebugEvent.Break) return; |
@@ -92,22 +91,20 @@ function listener(event, exec_state, event_data, data) { |
var match = line.match(/\/\/ Break (\d+)$/); |
assertEquals(2, match.length); |
assertEquals(break_count, parseInt(match[1])); |
- break_count += step_size; |
- exec_state.prepareStep(Debug.StepAction.StepFrame, step_size); |
+ break_count ++; |
+ exec_state.prepareStep(Debug.StepAction.StepFrame); |
} catch (e) { |
print(e + e.stack); |
exception = e; |
} |
} |
-for (step_size = 1; step_size < 6; step_size++) { |
- print("step size = " + step_size); |
- break_count = 0; |
- Debug.setListener(listener); |
- debugger; // Break 0 |
- f0(); |
- Debug.setListener(null); // Break 16 |
- assertTrue(break_count > 14); |
-} |
+ |
+break_count = 0; |
+Debug.setListener(listener); |
+debugger; // Break 0 |
+f0(); |
+Debug.setListener(null); // Break 16 |
+assertTrue(break_count > 14); |
assertNull(exception); |