Debian Codegraph @

js/src/tests/test/fixtures/export/regular.js

raw
1 // Copyright (C) 2017 Mozilla Corporation. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 author: Jeff Walden <[email protected]>
6 esid: sec-let-and-const-declarations
7 description: >
8 |await| is excluded from LexicalDeclaration by grammar parameter, in
9 AsyncFunction. Therefore |let| followed by |await| inside AsyncFunction is
10 an ASI opportunity, and this code must parse without error.
11 ---*/
12
13 async function f() {
14 let
15 await 0;
16 }
17
18 reportCompare(true, f instanceof Function);