Debian Codegraph @

js/src/tests/test/fixtures/export/reftest-and-frontmatter-error.js

raw
1 // |reftest| error:SyntaxError
2 // Copyright (C) 2017 Mozilla Corporation. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4
5 /*---
6 esid: sec-let-and-const-declarations
7 description: >
8 Outside AsyncFunction, |await| is a perfectly cromulent LexicalDeclaration
9 variable name. Therefore ASI doesn't apply, and so the |0| where a |=| was
10 expected is a syntax error.
11 negative:
12 phase: runtime
13 type: SyntaxError
14 ---*/
15
16 eval(`
17 function f() {
18 let
19 await 0;
20 }
21 `);