Debian Codegraph @

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

raw
1 // Copyright (C) 2021 Kevin Gibbons. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 description: leading `async` token in for-of LHS
6 info: |
7 The `async` token is allowed in the LHS if not followed by `of`
8 esid: sec-for-in-and-for-of-statements
9 ---*/
10
11 var async = { x: 0 };
12
13 for (async.x of [1]) ;
14
15 assert.sameValue(async.x, 1);
16
17 reportCompare(0, 0);