Debian Codegraph @

js/src/tests/test262/language/statements/for-await-of/let-block-with-newline.js

raw
1 // Copyright (C) 2017 André Bargull. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 esid: sec-for-in-and-for-of-statements
6 description: >
7 ExpressionStatement doesn't have a lookahead restriction for `let {`.
8 info: |
9 ExpressionStatement[Yield, Await] :
10 [lookahead ∉ { {, function, async [no LineTerminator here] function, class, let [ }]
11 Expression[+In, ?Yield, ?Await] ;
12 flags: [noStrict]
13 features: [async-iteration]
14 ---*/
15
16 async function* f() {
17 for await (var x of []) let // ASI
18 {}
19 }
20
21 reportCompare(0, 0);