| // Copyright (C) 2013 the V8 project authors. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| When the `next` method of a generator-produced iterable is invoked without |
| an argument, the corresponding `yield` expression should be evaluated as |
| function* g() { actual = yield; } |
| assert.sameValue(result.value, undefined); |
| assert.sameValue(result.done, false); |
| assert.sameValue(actual, undefined); |
| assert.sameValue(result.value, undefined); |
| assert.sameValue(result.done, true); |
| assert.sameValue(actual, undefined); |