Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Unified Diff: test/mjsunit/es6/debug-evaluate-blockscopes.js

Issue 1181013007: Debugger: require debugger to be active when dealing with breaks. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix yet another test Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/mjsunit/deserialize-script-id.js ('k') | test/mjsunit/es6/generators-relocation.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « test/mjsunit/deserialize-script-id.js ('k') | test/mjsunit/es6/generators-relocation.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698