| Index: test/mjsunit/harmony/generators-turbo.js
|
| diff --git a/test/mjsunit/harmony/generators-turbo.js b/test/mjsunit/harmony/generators-turbo.js
|
| index 23913e4229a227b58be0fd63d262413c33c7a53b..902812cb5daed770bba56632810c379e30c47ca2 100644
|
| --- a/test/mjsunit/harmony/generators-turbo.js
|
| +++ b/test/mjsunit/harmony/generators-turbo.js
|
| @@ -653,3 +653,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);
|
| +}
|
|
|