Debian Codegraph @

js/src/tests/test/expected/export/multi-header.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 Outside AsyncFunction, |await| is a perfectly cromulent LexicalDeclaration variable name. Therefore ASI doesn't apply, and so the |0| where a |=| was expected is a syntax error.
9 negative:
10 phase: early
11 type: SyntaxError
12 flags: [module]
13 features: [Temporal]
14 info: |
15 foo bar baz
16 ---*/
17 function f() {
18 let
19 await 0;
20 }