Index: test/mjsunit/debug-stepin-positions.js |
diff --git a/test/mjsunit/debug-stepin-positions.js b/test/mjsunit/debug-stepin-positions.js |
index ff532e3dd740a1d78df532475e6c981d179b089a..722df53666aea9587aebafb2ff78a92d26ddb004 100644 |
--- a/test/mjsunit/debug-stepin-positions.js |
+++ b/test/mjsunit/debug-stepin-positions.js |
@@ -37,13 +37,12 @@ function TestCase(fun, frame_number) { |
var exception = false; |
var codeSnippet = undefined; |
var resultPositions = undefined; |
- var step = 0; |
function listener(event, exec_state, event_data, data) { |
try { |
if (event == Debug.DebugEvent.Break || |
event == Debug.DebugEvent.Exception) { |
- if (step++ > 0) return; |
+ Debug.setListener(null); |
assertHasLineMark(/pause/, exec_state.frame(0)); |
assertHasLineMark(/positions/, exec_state.frame(frame_number)); |
var frame = exec_state.frame(frame_number); |