Debian Codegraph @

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

raw
1 // |reftest| error:SyntaxError module
2 // Copyright (C) 2018 André Bargull. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4
5 /*---
6 esid: sec-class-definitions
7 description: >
8 `await` is a valid class-name identifier.
9 info: |
10 12.1.1 Static Semantics: Early Errors
11
12 IdentifierReference : await
13
14 It is a Syntax Error if the goal symbol of the syntactic grammar is Module.
15 negative:
16 phase: parse
17 type: SyntaxError
18 flags: [module]
19 ---*/
20
21 $DONOTEVALUATE();
22
23 class await {}