Index: test/mjsunit/es6/debug-evaluate-blockscopes.js |
diff --git a/test/mjsunit/es6/debug-evaluate-blockscopes.js b/test/mjsunit/es6/debug-evaluate-blockscopes.js |
index e24ca783157084cb81a82cec80ceddafb3bb5b24..efc334e35fb9a042449adbcef75ebc2f48bb54fe 100644 |
--- a/test/mjsunit/es6/debug-evaluate-blockscopes.js |
+++ b/test/mjsunit/es6/debug-evaluate-blockscopes.js |
@@ -48,8 +48,6 @@ function f() { |
// Get the Debug object exposed from the debug context global object. |
var 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) { |
@@ -59,6 +57,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); |
@@ -107,3 +109,5 @@ assertEquals(null, exception, exception); |
exception = null; |
f2(); |
assertEquals(null, exception, exception); |
+ |
+Debug.setListener(null); |