Debian Codegraph @

js/src/tests/test262/language/statements/class/elements/syntax/early-errors/private-async-method-cannot-escape-token.js

raw
1 // |reftest| error:SyntaxError
2 // This file was procedurally generated from the following sources:
3 // - src/class-elements/private-async-method-cannot-escape-token.case
4 // - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
5 /*---
6 description: The pound signal in the private async method cannot be escaped (class declaration)
7 esid: prod-ClassElement
8 features: [class-methods-private, async-functions, class]
9 flags: [generated]
10 negative:
11 phase: parse
12 type: SyntaxError
13 info: |
14 PrivateName::
15 # IdentifierName
16
17 U+0023 is the escape sequence for #
18
19 ---*/
20
21
22 $DONOTEVALUATE();
23
24 class C {
25 async \u0023m() { return 42; }
26 }