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

Unified Diff: test/mjsunit/es6/generators-relocation.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/debug-evaluate-blockscopes.js ('k') | test/mjsunit/regress/regress-1586.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/es6/generators-relocation.js
diff --git a/test/mjsunit/es6/generators-relocation.js b/test/mjsunit/es6/generators-relocation.js
index 6babb148bec84d2c5581d16783e000644517dd74..2636f52d7b9eeb46a18a4c607324e04f53a3745e 100644
--- a/test/mjsunit/es6/generators-relocation.js
+++ b/test/mjsunit/es6/generators-relocation.js
@@ -25,13 +25,13 @@ function RunTest(formals_and_body, args, value1, value2) {
// Advance to the first yield.
assertIteratorResult(value1, false, obj.next());
- // Add a breakpoint on line 3 (the second yield).
- var bp = Debug.setBreakPoint(gen, 3);
-
// Enable the debugger, which should force recompilation of the generator
// function and relocation of the suspended generator activation.
Debug.setListener(listener);
+ // Add a breakpoint on line 3 (the second yield).
+ var bp = Debug.setBreakPoint(gen, 3);
+
// Check that the generator resumes and suspends properly.
assertIteratorResult(value2, false, obj.next());
« no previous file with comments | « test/mjsunit/es6/debug-evaluate-blockscopes.js ('k') | test/mjsunit/regress/regress-1586.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698