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

Unified Diff: test/debugger/debug/es6/debug-stepin-generators.js

Issue 2519853002: [debugger] step-next across yield should not leave the generator. (Closed)
Patch Set: Created 4 years, 1 month 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 | « src/runtime/runtime-generator.cc ('k') | test/debugger/debug/es6/debug-stepnext-generators.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/debugger/debug/es6/debug-stepin-generators.js
diff --git a/test/debugger/debug/es6/debug-stepin-generators.js b/test/debugger/debug/es6/debug-stepin-generators.js
index 5468ea04919f1aa106ee252d2e1c9cc9acda88d4..f92c756c2134db7a0f0c18588499fca07d9ce972 100644
--- a/test/debugger/debug/es6/debug-stepin-generators.js
+++ b/test/debugger/debug/es6/debug-stepin-generators.js
@@ -14,7 +14,11 @@ function listener(event, exec_state, event_data, data) {
print(source);
if (/stop stepping/.test(source)) return;
if (/yield/.test(source)) yields++;
- exec_state.prepareStep(Debug.StepAction.StepIn);
+ if (yields == 4) {
+ exec_state.prepareStep(Debug.StepAction.StepOut);
+ } else {
+ exec_state.prepareStep(Debug.StepAction.StepIn);
+ }
} catch (e) {
print(e, e.stack);
exception = e;
« no previous file with comments | « src/runtime/runtime-generator.cc ('k') | test/debugger/debug/es6/debug-stepnext-generators.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698