Debian Codegraph @

js/src/tests/test/expected/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 AsyncFunction. Therefore |let| followed by |await| inside AsyncFunction is an ASI opportunity, and this code must parse without error.
9 flags: [noStrict]
10 ---*/
11 async function f() {
12 let
13 await 0;
14 }
15
16 assert.sameValue(true, f instanceof Function);