Debian Codegraph @

js/src/tests/test/expected/export/reftest-and-frontmatter-error.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 esid: sec-let-and-const-declarations
6 description: |
7 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.
8 negative:
9 phase: runtime
10 type: SyntaxError
11 flags: [noStrict]
12 ---*/
13 eval(`
14 function f() {
15 let
16 await 0;
17 }
18 `);