Index: test/debugger/debug/regress/regress-crbug-568477-3.js |
diff --git a/test/debugger/debug/regress/regress-crbug-568477-3.js b/test/debugger/debug/regress/regress-crbug-568477-3.js |
index cd4c60df3ec351a6db36b2baa457e9df12f1ce7c..fcc16bf9d062e820fc50911e599150c79460fff4 100644 |
--- a/test/debugger/debug/regress/regress-crbug-568477-3.js |
+++ b/test/debugger/debug/regress/regress-crbug-568477-3.js |
@@ -10,8 +10,9 @@ var log = []; |
function listener(event, exec_state, event_data, data) { |
if (event != Debug.DebugEvent.Break) return; |
try { |
- log.push(exec_state.frame(0).sourceLineText().trimLeft()); |
- exec_state.prepareStep(Debug.StepAction.StepNext); |
+ var line = exec_state.frame(0).sourceLineText().trimLeft(); |
+ log.push(line); |
+ if (line == "debugger;") exec_state.prepareStep(Debug.StepAction.StepNext); |
} catch (e) { |
%AbortJS(e + "\n" + e.stack); |
} |