Debian Codegraph @

js/src/tests/test262/language/statements/class/class-name-ident-await.js

raw
1 // Copyright (C) 2018 André Bargull. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 esid: sec-class-definitions
6 description: >
7 `await` is a valid class-name identifier.
8 info: |
9 12.1.1 Static Semantics: Early Errors
10
11 IdentifierReference : await
12
13 It is a Syntax Error if the goal symbol of the syntactic grammar is Module.
14 ---*/
15
16 class await {}
17
18 reportCompare(0, 0);