Strict mode Failing
Expected no error, got SyntaxError: async generators are unsupported
non-Strict mode Failing
Expected no error, got SyntaxError: async generators are unsupported
Features:
- async-iteration
Expected no error, got SyntaxError: async generators are unsupported
Expected no error, got SyntaxError: async generators are unsupported
// Copyright 2017 the V8 project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- author: Caitlin Potter <caitp@igalia.com> esid: sec-generator-function-definitions description: > The right-hand side of a `yield *` expression may appear on a new line. flags: [async] features: [async-iteration] ---*/ var g = async function*() {}; (async function*() { yield* g(); })().next().then(function(result) { assert.sameValue(result.value, undefined); assert.sameValue(result.done, true); }).then($DONE, $DONE);