1 // |reftest| error:SyntaxError
2 // This file was procedurally generated from the following sources:
3 // - src/invalid-private-names/call-expression-this.case
4 // - src/invalid-private-names/default/top-level-scriptbody.template
6 description: this evaluated in call expression (Invalid private names should throw a SyntaxError, top level of script body)
7 esid: sec-static-semantics-early-errors
8 features: [class-fields-private]
14 ScriptBody:StatementList
15 It is a Syntax Error if AllPrivateNamesValid of StatementList with an empty List
16 as an argument is false unless the source code is eval code that is being
17 processed by a direct eval.
19 ModuleBody:ModuleItemList
20 It is a Syntax Error if AllPrivateNamesValid of ModuleItemList with an empty List
21 as an argument is false.
24 Static Semantics: AllPrivateNamesValid
26 MemberExpression : MemberExpression . PrivateName
28 1. If StringValue of PrivateName is in names, return true.
31 CallExpression : CallExpression . PrivateName
33 1. If StringValue of PrivateName is in names, return true.