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

Unified Diff: test/mjsunit/regress/regress-1586.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/es6/generators-relocation.js ('k') | test/mjsunit/regress/regress-2318.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « test/mjsunit/es6/generators-relocation.js ('k') | test/mjsunit/regress/regress-2318.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698