| Index: test/mjsunit/harmony/generators-iteration.js
|
| diff --git a/test/mjsunit/harmony/generators-iteration.js b/test/mjsunit/harmony/generators-iteration.js
|
| index d86a20f9e7da2cd52a59dd3cb15eb4bcfea76ec8..e54aeabd75cb2e9f3e93951a5ffd95358840c942 100644
|
| --- a/test/mjsunit/harmony/generators-iteration.js
|
| +++ b/test/mjsunit/harmony/generators-iteration.js
|
| @@ -337,6 +337,24 @@ TestGenerator(
|
| "foo",
|
| [2, "1foo3", 5, "4foo6", "foofoo"]);
|
|
|
| +// Yield with no arguments yields undefined.
|
| +TestGenerator(
|
| + function* g26() { return yield yield },
|
| + [undefined, undefined, undefined],
|
| + "foo",
|
| + [undefined, "foo", "foo"]);
|
| +
|
| +// A newline causes the parser to stop looking for an argument to yield.
|
| +TestGenerator(
|
| + function* g27() {
|
| + yield
|
| + 3
|
| + return
|
| + },
|
| + [undefined, undefined],
|
| + "foo",
|
| + [undefined, undefined]);
|
| +
|
| // Generator function instances.
|
| TestGenerator(GeneratorFunction(),
|
| [undefined],
|
|
|