Debian Codegraph @

js/src/tests/test262/language/expressions/class/class-name-ident-await-escaped-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` with escape sequence is a valid class-name identifier.
9 info: |
10 12.1.1 Static Semantics: Early Errors
11
12 Identifier : IdentifierName but not ReservedWord
13
14 It is a Syntax Error if the goal symbol of the syntactic grammar is Module
15 and the StringValue of IdentifierName is "await".
16 negative:
17 phase: parse
18 type: SyntaxError
19 flags: [module]
20 ---*/
21
22 $DONOTEVALUATE();
23
24 var C = class aw\u0061it {};