Debian Codegraph @

js/src/tests/test262/language/expressions/class/class-name-ident-await-escaped.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` with escape sequence is a valid class-name identifier.
8 info: |
9 12.1.1 Static Semantics: Early Errors
10
11 Identifier : IdentifierName but not ReservedWord
12
13 It is a Syntax Error if the goal symbol of the syntactic grammar is Module
14 and the StringValue of IdentifierName is "await".
15 ---*/
16
17 var C = class aw\u0061it {};
18
19 reportCompare(0, 0);