Debian Codegraph @

js/src/tests/test262/language/statements/for-of/head-lhs-async-escaped.js

raw
1 // Copyright (C) 2021 Stuart Cook. 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 The left-hand-side of a for-of loop may be the identifier `async` written
8 with an escape sequence.
9 info: |
10 ForInOfStatement[Yield, Await, Return] :
11 for ( [lookahead ∉ { let, async of }] LeftHandSideExpression[?Yield, ?Await] of AssignmentExpression[+In, ?Yield, ?Await] ) Statement[?Yield, ?Await, ?Return]
12 ---*/
13
14 let async;
15
16 for (\u0061sync of [7]);
17
18 assert.sameValue(async, 7);
19
20 reportCompare(0, 0);