| Index: test/mjsunit/harmony/generators.js
|
| diff --git a/test/mjsunit/harmony/generators.js b/test/mjsunit/harmony/generators.js
|
| index eb4e51e9666a455dbea716701d6390ef0c88321e..895a248216081fcd56d02f84dc66a697ce3c07aa 100644
|
| --- a/test/mjsunit/harmony/generators.js
|
| +++ b/test/mjsunit/harmony/generators.js
|
| @@ -648,3 +648,15 @@ function Throw(generator, ...args) {
|
| assertEquals({value: 42, done: false}, Next(g));
|
| assertEquals({value: 23, done: true}, Return(g, 23));
|
| }
|
| +
|
| +{
|
| + let iterable = {
|
| + [Symbol.iterator]() {
|
| + return { next() { return {} } };
|
| + }
|
| + };
|
| + let foo = function*() { yield* iterable };
|
| + g = foo();
|
| + g.next();
|
| + assertThrows(() => Throw(g), TypeError);
|
| +}
|
|
|