Index: test/mjsunit/regress/regress-1586.js |
diff --git a/test/mjsunit/regress/regress-1586.js b/test/mjsunit/regress/regress-1586.js |
index b15e2f2432d7ae9b844749201228a25d4049889f..9c805a7a4b80e5a6c0161f85a8462a65bdc040bf 100644 |
--- a/test/mjsunit/regress/regress-1586.js |
+++ b/test/mjsunit/regress/regress-1586.js |
@@ -43,8 +43,6 @@ function f() { |
// Get the Debug object exposed from the debug context global object. |
Debug = debug.Debug |
-// Set breakpoint on line 6. |
-var bp = Debug.setBreakPoint(f, 6); |
function listener(event, exec_state, event_data, data) { |
if (event == Debug.DebugEvent.Break) { |
@@ -54,6 +52,10 @@ function listener(event, exec_state, event_data, data) { |
// Add the debug event listener. |
Debug.setListener(listener); |
+ |
+//Set breakpoint on line 6. |
+var bp = Debug.setBreakPoint(f, 6); |
+ |
result = -1; |
f(); |
assertEquals(1, result); |