diff --git a/test/language/expressions/class/elements/syntax/early-errors/invalid-names/method-inner-call-expression-bad-reference.js b/test/language/expressions/class/elements/syntax/early-errors/invalid-names/method-inner-call-expression-bad-reference.js deleted file mode 100644 index eaa9f0a47a..0000000000 --- a/test/language/expressions/class/elements/syntax/early-errors/invalid-names/method-inner-call-expression-bad-reference.js +++ /dev/null @@ -1,57 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/invalid-private-names/call-expression-bad-reference.case -// - src/invalid-private-names/default/cls-expr-inner-method.template -/*--- -description: bad reference in call expression (Invalid private names should throw a SyntaxError, method in inner class expression) -esid: sec-static-semantics-early-errors -features: [class-fields-private, class] -flags: [generated] -negative: - phase: parse - type: SyntaxError -info: | - ScriptBody:StatementList - It is a Syntax Error if AllPrivateNamesValid of StatementList with an empty List - as an argument is false unless the source code is eval code that is being - processed by a direct eval. - - ModuleBody:ModuleItemList - It is a Syntax Error if AllPrivateNamesValid of ModuleItemList with an empty List - as an argument is false. - - Static Semantics: AllPrivateNamesValid - - ClassBody : ClassElementList - 1. Let newNames be the concatenation of names with PrivateBoundNames of ClassBody. - 2. Return AllPrivateNamesValid of ClassElementList with the argument newNames. - - For all other grammatical productions, recurse on subexpressions/substatements, - passing in the names of the caller. If all pieces return true, then return true. - If any returns false, return false. - - - Static Semantics: AllPrivateNamesValid - - MemberExpression : MemberExpression . PrivateName - - 1. If StringValue of PrivateName is in names, return true. - 2. Return false. - - CallExpression : CallExpression . PrivateName - - 1. If StringValue of PrivateName is in names, return true. - 2. Return false. - ----*/ - - -$DONOTEVALUATE(); - -var C = class { - #x = 42; - m() { - class Inner { - z() { (() => {})().#x } - } - } -}; diff --git a/test/language/expressions/class/elements/syntax/early-errors/invalid-names/method-inner-call-expression-this.js b/test/language/expressions/class/elements/syntax/early-errors/invalid-names/method-inner-call-expression-this.js deleted file mode 100644 index 75e392e56d..0000000000 --- a/test/language/expressions/class/elements/syntax/early-errors/invalid-names/method-inner-call-expression-this.js +++ /dev/null @@ -1,57 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/invalid-private-names/call-expression-this.case -// - src/invalid-private-names/default/cls-expr-inner-method.template -/*--- -description: this evaluated in call expression (Invalid private names should throw a SyntaxError, method in inner class expression) -esid: sec-static-semantics-early-errors -features: [class-fields-private, class] -flags: [generated] -negative: - phase: parse - type: SyntaxError -info: | - ScriptBody:StatementList - It is a Syntax Error if AllPrivateNamesValid of StatementList with an empty List - as an argument is false unless the source code is eval code that is being - processed by a direct eval. - - ModuleBody:ModuleItemList - It is a Syntax Error if AllPrivateNamesValid of ModuleItemList with an empty List - as an argument is false. - - Static Semantics: AllPrivateNamesValid - - ClassBody : ClassElementList - 1. Let newNames be the concatenation of names with PrivateBoundNames of ClassBody. - 2. Return AllPrivateNamesValid of ClassElementList with the argument newNames. - - For all other grammatical productions, recurse on subexpressions/substatements, - passing in the names of the caller. If all pieces return true, then return true. - If any returns false, return false. - - - Static Semantics: AllPrivateNamesValid - - MemberExpression : MemberExpression . PrivateName - - 1. If StringValue of PrivateName is in names, return true. - 2. Return false. - - CallExpression : CallExpression . PrivateName - - 1. If StringValue of PrivateName is in names, return true. - 2. Return false. - ----*/ - - -$DONOTEVALUATE(); - -var C = class { - #x = 42; - m() { - class Inner { - z() { (() => this)().#x } - } - } -}; diff --git a/test/language/expressions/class/elements/syntax/early-errors/invalid-names/method-inner-member-expression-bad-reference.js b/test/language/expressions/class/elements/syntax/early-errors/invalid-names/method-inner-member-expression-bad-reference.js deleted file mode 100644 index 5d6af39f83..0000000000 --- a/test/language/expressions/class/elements/syntax/early-errors/invalid-names/method-inner-member-expression-bad-reference.js +++ /dev/null @@ -1,57 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/invalid-private-names/member-expression-bad-reference.case -// - src/invalid-private-names/default/cls-expr-inner-method.template -/*--- -description: bad reference in member expression (Invalid private names should throw a SyntaxError, method in inner class expression) -esid: sec-static-semantics-early-errors -features: [class-fields-private, class] -flags: [generated] -negative: - phase: parse - type: SyntaxError -info: | - ScriptBody:StatementList - It is a Syntax Error if AllPrivateNamesValid of StatementList with an empty List - as an argument is false unless the source code is eval code that is being - processed by a direct eval. - - ModuleBody:ModuleItemList - It is a Syntax Error if AllPrivateNamesValid of ModuleItemList with an empty List - as an argument is false. - - Static Semantics: AllPrivateNamesValid - - ClassBody : ClassElementList - 1. Let newNames be the concatenation of names with PrivateBoundNames of ClassBody. - 2. Return AllPrivateNamesValid of ClassElementList with the argument newNames. - - For all other grammatical productions, recurse on subexpressions/substatements, - passing in the names of the caller. If all pieces return true, then return true. - If any returns false, return false. - - - Static Semantics: AllPrivateNamesValid - - MemberExpression : MemberExpression . PrivateName - - 1. If StringValue of PrivateName is in names, return true. - 2. Return false. - - CallExpression : CallExpression . PrivateName - - 1. If StringValue of PrivateName is in names, return true. - 2. Return false. - ----*/ - - -$DONOTEVALUATE(); - -var C = class { - #x = 42; - m() { - class Inner { - z() { something.#x } - } - } -}; diff --git a/test/language/expressions/class/elements/syntax/early-errors/invalid-names/method-inner-member-expression-this.js b/test/language/expressions/class/elements/syntax/early-errors/invalid-names/method-inner-member-expression-this.js deleted file mode 100644 index 22734ed775..0000000000 --- a/test/language/expressions/class/elements/syntax/early-errors/invalid-names/method-inner-member-expression-this.js +++ /dev/null @@ -1,57 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/invalid-private-names/member-expression-this.case -// - src/invalid-private-names/default/cls-expr-inner-method.template -/*--- -description: this reference in member expression (Invalid private names should throw a SyntaxError, method in inner class expression) -esid: sec-static-semantics-early-errors -features: [class-fields-private, class] -flags: [generated] -negative: - phase: parse - type: SyntaxError -info: | - ScriptBody:StatementList - It is a Syntax Error if AllPrivateNamesValid of StatementList with an empty List - as an argument is false unless the source code is eval code that is being - processed by a direct eval. - - ModuleBody:ModuleItemList - It is a Syntax Error if AllPrivateNamesValid of ModuleItemList with an empty List - as an argument is false. - - Static Semantics: AllPrivateNamesValid - - ClassBody : ClassElementList - 1. Let newNames be the concatenation of names with PrivateBoundNames of ClassBody. - 2. Return AllPrivateNamesValid of ClassElementList with the argument newNames. - - For all other grammatical productions, recurse on subexpressions/substatements, - passing in the names of the caller. If all pieces return true, then return true. - If any returns false, return false. - - - Static Semantics: AllPrivateNamesValid - - MemberExpression : MemberExpression . PrivateName - - 1. If StringValue of PrivateName is in names, return true. - 2. Return false. - - CallExpression : CallExpression . PrivateName - - 1. If StringValue of PrivateName is in names, return true. - 2. Return false. - ----*/ - - -$DONOTEVALUATE(); - -var C = class { - #x = 42; - m() { - class Inner { - z() { this.#x } - } - } -}; diff --git a/test/language/statements/class/elements/syntax/early-errors/invalid-names/method-inner-call-expression-bad-reference.js b/test/language/statements/class/elements/syntax/early-errors/invalid-names/method-inner-call-expression-bad-reference.js deleted file mode 100644 index 8f8277bb1b..0000000000 --- a/test/language/statements/class/elements/syntax/early-errors/invalid-names/method-inner-call-expression-bad-reference.js +++ /dev/null @@ -1,57 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/invalid-private-names/call-expression-bad-reference.case -// - src/invalid-private-names/default/cls-decl-inner-method.template -/*--- -description: bad reference in call expression (Invalid private names should throw a SyntaxError, method in inner class declaration) -esid: sec-static-semantics-early-errors -features: [class-fields-private, class] -flags: [generated] -negative: - phase: parse - type: SyntaxError -info: | - ScriptBody:StatementList - It is a Syntax Error if AllPrivateNamesValid of StatementList with an empty List - as an argument is false unless the source code is eval code that is being - processed by a direct eval. - - ModuleBody:ModuleItemList - It is a Syntax Error if AllPrivateNamesValid of ModuleItemList with an empty List - as an argument is false. - - Static Semantics: AllPrivateNamesValid - - ClassBody : ClassElementList - 1. Let newNames be the concatenation of names with PrivateBoundNames of ClassBody. - 2. Return AllPrivateNamesValid of ClassElementList with the argument newNames. - - For all other grammatical productions, recurse on subexpressions/substatements, - passing in the names of the caller. If all pieces return true, then return true. - If any returns false, return false. - - - Static Semantics: AllPrivateNamesValid - - MemberExpression : MemberExpression . PrivateName - - 1. If StringValue of PrivateName is in names, return true. - 2. Return false. - - CallExpression : CallExpression . PrivateName - - 1. If StringValue of PrivateName is in names, return true. - 2. Return false. - ----*/ - - -$DONOTEVALUATE(); - -class C { - #x = 42; - m() { - class Inner { - z() { (() => {})().#x } - } - } -} diff --git a/test/language/statements/class/elements/syntax/early-errors/invalid-names/method-inner-call-expression-this.js b/test/language/statements/class/elements/syntax/early-errors/invalid-names/method-inner-call-expression-this.js deleted file mode 100644 index f97faa1c65..0000000000 --- a/test/language/statements/class/elements/syntax/early-errors/invalid-names/method-inner-call-expression-this.js +++ /dev/null @@ -1,57 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/invalid-private-names/call-expression-this.case -// - src/invalid-private-names/default/cls-decl-inner-method.template -/*--- -description: this evaluated in call expression (Invalid private names should throw a SyntaxError, method in inner class declaration) -esid: sec-static-semantics-early-errors -features: [class-fields-private, class] -flags: [generated] -negative: - phase: parse - type: SyntaxError -info: | - ScriptBody:StatementList - It is a Syntax Error if AllPrivateNamesValid of StatementList with an empty List - as an argument is false unless the source code is eval code that is being - processed by a direct eval. - - ModuleBody:ModuleItemList - It is a Syntax Error if AllPrivateNamesValid of ModuleItemList with an empty List - as an argument is false. - - Static Semantics: AllPrivateNamesValid - - ClassBody : ClassElementList - 1. Let newNames be the concatenation of names with PrivateBoundNames of ClassBody. - 2. Return AllPrivateNamesValid of ClassElementList with the argument newNames. - - For all other grammatical productions, recurse on subexpressions/substatements, - passing in the names of the caller. If all pieces return true, then return true. - If any returns false, return false. - - - Static Semantics: AllPrivateNamesValid - - MemberExpression : MemberExpression . PrivateName - - 1. If StringValue of PrivateName is in names, return true. - 2. Return false. - - CallExpression : CallExpression . PrivateName - - 1. If StringValue of PrivateName is in names, return true. - 2. Return false. - ----*/ - - -$DONOTEVALUATE(); - -class C { - #x = 42; - m() { - class Inner { - z() { (() => this)().#x } - } - } -} diff --git a/test/language/statements/class/elements/syntax/early-errors/invalid-names/method-inner-member-expression-bad-reference.js b/test/language/statements/class/elements/syntax/early-errors/invalid-names/method-inner-member-expression-bad-reference.js deleted file mode 100644 index 58db4909b1..0000000000 --- a/test/language/statements/class/elements/syntax/early-errors/invalid-names/method-inner-member-expression-bad-reference.js +++ /dev/null @@ -1,57 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/invalid-private-names/member-expression-bad-reference.case -// - src/invalid-private-names/default/cls-decl-inner-method.template -/*--- -description: bad reference in member expression (Invalid private names should throw a SyntaxError, method in inner class declaration) -esid: sec-static-semantics-early-errors -features: [class-fields-private, class] -flags: [generated] -negative: - phase: parse - type: SyntaxError -info: | - ScriptBody:StatementList - It is a Syntax Error if AllPrivateNamesValid of StatementList with an empty List - as an argument is false unless the source code is eval code that is being - processed by a direct eval. - - ModuleBody:ModuleItemList - It is a Syntax Error if AllPrivateNamesValid of ModuleItemList with an empty List - as an argument is false. - - Static Semantics: AllPrivateNamesValid - - ClassBody : ClassElementList - 1. Let newNames be the concatenation of names with PrivateBoundNames of ClassBody. - 2. Return AllPrivateNamesValid of ClassElementList with the argument newNames. - - For all other grammatical productions, recurse on subexpressions/substatements, - passing in the names of the caller. If all pieces return true, then return true. - If any returns false, return false. - - - Static Semantics: AllPrivateNamesValid - - MemberExpression : MemberExpression . PrivateName - - 1. If StringValue of PrivateName is in names, return true. - 2. Return false. - - CallExpression : CallExpression . PrivateName - - 1. If StringValue of PrivateName is in names, return true. - 2. Return false. - ----*/ - - -$DONOTEVALUATE(); - -class C { - #x = 42; - m() { - class Inner { - z() { something.#x } - } - } -} diff --git a/test/language/statements/class/elements/syntax/early-errors/invalid-names/method-inner-member-expression-this.js b/test/language/statements/class/elements/syntax/early-errors/invalid-names/method-inner-member-expression-this.js deleted file mode 100644 index 820cc19245..0000000000 --- a/test/language/statements/class/elements/syntax/early-errors/invalid-names/method-inner-member-expression-this.js +++ /dev/null @@ -1,57 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/invalid-private-names/member-expression-this.case -// - src/invalid-private-names/default/cls-decl-inner-method.template -/*--- -description: this reference in member expression (Invalid private names should throw a SyntaxError, method in inner class declaration) -esid: sec-static-semantics-early-errors -features: [class-fields-private, class] -flags: [generated] -negative: - phase: parse - type: SyntaxError -info: | - ScriptBody:StatementList - It is a Syntax Error if AllPrivateNamesValid of StatementList with an empty List - as an argument is false unless the source code is eval code that is being - processed by a direct eval. - - ModuleBody:ModuleItemList - It is a Syntax Error if AllPrivateNamesValid of ModuleItemList with an empty List - as an argument is false. - - Static Semantics: AllPrivateNamesValid - - ClassBody : ClassElementList - 1. Let newNames be the concatenation of names with PrivateBoundNames of ClassBody. - 2. Return AllPrivateNamesValid of ClassElementList with the argument newNames. - - For all other grammatical productions, recurse on subexpressions/substatements, - passing in the names of the caller. If all pieces return true, then return true. - If any returns false, return false. - - - Static Semantics: AllPrivateNamesValid - - MemberExpression : MemberExpression . PrivateName - - 1. If StringValue of PrivateName is in names, return true. - 2. Return false. - - CallExpression : CallExpression . PrivateName - - 1. If StringValue of PrivateName is in names, return true. - 2. Return false. - ----*/ - - -$DONOTEVALUATE(); - -class C { - #x = 42; - m() { - class Inner { - z() { this.#x } - } - } -}