Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/async-generator/early-errors-expression-yield-star-after-newline.js

raw
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 A newline may not precede the `*` token in a `yield` expression.
9 negative:
10 phase: parse
11 type: SyntaxError
12 features: [async-iteration]
13 ---*/
14
15 throw "Test262: This statement should not be evaluated.";
16
17 (async function*() {
18 yield
19 * 1;
20 });