Debian Codegraph @

js/src/tests/test/fixtures/export/reftest-error-syntaxerror.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 author: Jeff Walden <[email protected]>
7 esid: sec-let-and-const-declarations
8 description: >
9 Outside AsyncFunction, |await| is a perfectly cromulent LexicalDeclaration
10 variable name. Therefore ASI doesn't apply, and so the |0| where a |=| was
11 expected is a syntax error.
12 ---*/
13
14 function f() {
15 let
16 await 0;
17 }