| 1 |
// Copyright 2017 the V8 project authors. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
author: Caitlin Potter <[email protected]> |
| 6 |
esid: sec-generator-function-definitions |
| 7 |
description: > |
| 8 |
The right-hand side of a `yield *` expression may appear on a new line. |
| 9 |
flags: [async] |
| 10 |
features: [async-iteration] |
| 11 |
---*/ |
| 12 |
|
| 13 |
var g = async function*() {}; |
| 14 |
|
| 15 |
(async function*() { |
| 16 |
yield* |
| 17 |
g(); |
| 18 |
})().next().then(function(result) { |
| 19 |
assert.sameValue(result.value, undefined); |
| 20 |
assert.sameValue(result.done, true); |
| 21 |
}).then($DONE, $DONE); |