Debian Codegraph @

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

raw
1 // |reftest| error:SyntaxError
2 // Copyright (C) 2021 Kevin Gibbons. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4
5 /*---
6 description: leading `async` token in for-of LHS
7 info: |
8 The `async` token is disallowed in the LHS when followed by `of`
9 esid: sec-for-in-and-for-of-statements
10 negative:
11 phase: parse
12 type: SyntaxError
13 ---*/
14
15 $DONOTEVALUATE();
16
17 var async;
18 for (async of [1]) ;