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