| Index: test/mjsunit/harmony/generators.js
|
| diff --git a/test/mjsunit/harmony/generators.js b/test/mjsunit/harmony/generators.js
|
| index ce68fd0175341c0e9afb40b42b2d711763daf4ac..eb4e51e9666a455dbea716701d6390ef0c88321e 100644
|
| --- a/test/mjsunit/harmony/generators.js
|
| +++ b/test/mjsunit/harmony/generators.js
|
| @@ -638,3 +638,13 @@ function Throw(generator, ...args) {
|
| assertEquals({value: 42, done: false}, Next(g));
|
| assertEquals({value: 42, done: false}, Next(g));
|
| }
|
| +
|
| +{
|
| + let foo = function*() {
|
| + yield* (function*() { yield 42; }());
|
| + assertUnreachable();
|
| + }
|
| + g = foo();
|
| + assertEquals({value: 42, done: false}, Next(g));
|
| + assertEquals({value: 23, done: true}, Return(g, 23));
|
| +}
|
|
|