| 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;
|
|
|