From aeffe35d5bb2e18c83a7982494b2d1d6e14a6951 Mon Sep 17 00:00:00 2001 From: Valerie R Young Date: Wed, 18 Oct 2017 16:23:20 -0400 Subject: [PATCH] regenerate test files --- ...-arrow-fnc-init-err-contains-arguments.js} | 2 +- ...-comp-name-init-err-contains-arguments.js} | 2 +- ...s-equality-init-err-contains-arguments.js} | 2 +- ...teral-name-init-err-contains-arguments.js} | 2 +- ...e-arrow-fnc-init-err-contains-arguments.js | 34 ++++++++++++++++++ ...ivate-arrow-fnc-init-err-contains-super.js | 27 ++++++++++++++ ...iteral-name-init-err-contains-arguments.js | 34 ++++++++++++++++++ ...te-literal-name-init-err-contains-super.js | 27 ++++++++++++++ ...ate-ternary-init-err-contains-arguments.js | 34 ++++++++++++++++++ ...private-ternary-init-err-contains-super.js | 27 ++++++++++++++ ...vate-typeof-init-err-contains-arguments.js | 34 ++++++++++++++++++ ...-private-typeof-init-err-contains-super.js | 27 ++++++++++++++ ...-comp-name-init-err-contains-arguments.js} | 2 +- ...ic-literal-init-err-contains-arguments.js} | 2 +- ...tic-private-init-err-contains-arguments.js | 34 ++++++++++++++++++ ...-static-private-init-err-contains-super.js | 27 ++++++++++++++ ...teral-name-init-err-contains-arguments.js} | 2 +- ...teral-name-init-err-contains-arguments.js} | 2 +- ...ds-ternary-init-err-contains-arguments.js} | 2 +- ...lds-typeof-init-err-contains-arguments.js} | 2 +- ...-arrow-fnc-init-err-contains-arguments.js} | 2 +- ...-comp-name-init-err-contains-arguments.js} | 2 +- ...s-equality-init-err-contains-arguments.js} | 2 +- ...teral-name-init-err-contains-arguments.js} | 2 +- ...e-arrow-fnc-init-err-contains-arguments.js | 35 +++++++++++++++++++ ...ivate-arrow-fnc-init-err-contains-super.js | 28 +++++++++++++++ ...iteral-name-init-err-contains-arguments.js | 34 ++++++++++++++++++ ...te-literal-name-init-err-contains-super.js | 27 ++++++++++++++ ...ate-ternary-init-err-contains-arguments.js | 34 ++++++++++++++++++ ...private-ternary-init-err-contains-super.js | 27 ++++++++++++++ ...vate-typeof-init-err-contains-arguments.js | 34 ++++++++++++++++++ ...-private-typeof-init-err-contains-super.js | 27 ++++++++++++++ ...-comp-name-init-err-contains-arguments.js} | 2 +- ...ic-literal-init-err-contains-arguments.js} | 2 +- ...tic-private-init-err-contains-arguments.js | 34 ++++++++++++++++++ ...-static-private-init-err-contains-super.js | 27 ++++++++++++++ ...teral-name-init-err-contains-arguments.js} | 2 +- ...teral-name-init-err-contains-arguments.js} | 2 +- ...ds-ternary-init-err-contains-arguments.js} | 2 +- ...lds-typeof-init-err-contains-arguments.js} | 2 +- 40 files changed, 632 insertions(+), 20 deletions(-) rename test/language/expressions/class/{fields-arrow-fnc-init-err-contains-boolean.js => fields-arrow-fnc-init-err-contains-arguments.js} (94%) rename test/language/expressions/class/{fields-comp-name-init-err-contains-boolean.js => fields-comp-name-init-err-contains-arguments.js} (94%) rename test/language/expressions/class/{fields-equality-init-err-contains-boolean.js => fields-equality-init-err-contains-arguments.js} (94%) rename test/language/expressions/class/{fields-literal-name-init-err-contains-boolean.js => fields-literal-name-init-err-contains-arguments.js} (94%) create mode 100644 test/language/expressions/class/fields-private-arrow-fnc-init-err-contains-arguments.js create mode 100644 test/language/expressions/class/fields-private-arrow-fnc-init-err-contains-super.js create mode 100644 test/language/expressions/class/fields-private-literal-name-init-err-contains-arguments.js create mode 100644 test/language/expressions/class/fields-private-literal-name-init-err-contains-super.js create mode 100644 test/language/expressions/class/fields-private-ternary-init-err-contains-arguments.js create mode 100644 test/language/expressions/class/fields-private-ternary-init-err-contains-super.js create mode 100644 test/language/expressions/class/fields-private-typeof-init-err-contains-arguments.js create mode 100644 test/language/expressions/class/fields-private-typeof-init-err-contains-super.js rename test/language/expressions/class/{fields-static-comp-name-init-err-contains-boolean.js => fields-static-comp-name-init-err-contains-arguments.js} (94%) rename test/language/expressions/class/{fields-static-literal-init-err-contains-boolean.js => fields-static-literal-init-err-contains-arguments.js} (94%) create mode 100644 test/language/expressions/class/fields-static-private-init-err-contains-arguments.js create mode 100644 test/language/expressions/class/fields-static-private-init-err-contains-super.js rename test/language/expressions/class/{fields-static-string-literal-name-init-err-contains-boolean.js => fields-static-string-literal-name-init-err-contains-arguments.js} (94%) rename test/language/expressions/class/{fields-string-literal-name-init-err-contains-boolean.js => fields-string-literal-name-init-err-contains-arguments.js} (94%) rename test/language/expressions/class/{fields-ternary-init-err-contains-boolean.js => fields-ternary-init-err-contains-arguments.js} (94%) rename test/language/expressions/class/{fields-typeof-init-err-contains-boolean.js => fields-typeof-init-err-contains-arguments.js} (94%) rename test/language/statements/class/{fields-arrow-fnc-init-err-contains-boolean.js => fields-arrow-fnc-init-err-contains-arguments.js} (94%) rename test/language/statements/class/{fields-comp-name-init-err-contains-boolean.js => fields-comp-name-init-err-contains-arguments.js} (94%) rename test/language/statements/class/{fields-equality-init-err-contains-boolean.js => fields-equality-init-err-contains-arguments.js} (94%) rename test/language/statements/class/{fields-literal-name-init-err-contains-boolean.js => fields-literal-name-init-err-contains-arguments.js} (94%) create mode 100644 test/language/statements/class/fields-private-arrow-fnc-init-err-contains-arguments.js create mode 100644 test/language/statements/class/fields-private-arrow-fnc-init-err-contains-super.js create mode 100644 test/language/statements/class/fields-private-literal-name-init-err-contains-arguments.js create mode 100644 test/language/statements/class/fields-private-literal-name-init-err-contains-super.js create mode 100644 test/language/statements/class/fields-private-ternary-init-err-contains-arguments.js create mode 100644 test/language/statements/class/fields-private-ternary-init-err-contains-super.js create mode 100644 test/language/statements/class/fields-private-typeof-init-err-contains-arguments.js create mode 100644 test/language/statements/class/fields-private-typeof-init-err-contains-super.js rename test/language/statements/class/{fields-static-comp-name-init-err-contains-boolean.js => fields-static-comp-name-init-err-contains-arguments.js} (94%) rename test/language/statements/class/{fields-static-literal-init-err-contains-boolean.js => fields-static-literal-init-err-contains-arguments.js} (94%) create mode 100644 test/language/statements/class/fields-static-private-init-err-contains-arguments.js create mode 100644 test/language/statements/class/fields-static-private-init-err-contains-super.js rename test/language/statements/class/{fields-static-string-literal-name-init-err-contains-boolean.js => fields-static-string-literal-name-init-err-contains-arguments.js} (94%) rename test/language/statements/class/{fields-string-literal-name-init-err-contains-boolean.js => fields-string-literal-name-init-err-contains-arguments.js} (94%) rename test/language/statements/class/{fields-ternary-init-err-contains-boolean.js => fields-ternary-init-err-contains-arguments.js} (94%) rename test/language/statements/class/{fields-typeof-init-err-contains-boolean.js => fields-typeof-init-err-contains-arguments.js} (94%) diff --git a/test/language/expressions/class/fields-arrow-fnc-init-err-contains-boolean.js b/test/language/expressions/class/fields-arrow-fnc-init-err-contains-arguments.js similarity index 94% rename from test/language/expressions/class/fields-arrow-fnc-init-err-contains-boolean.js rename to test/language/expressions/class/fields-arrow-fnc-init-err-contains-arguments.js index 9fc6f0ff5e..878ab53cf7 100644 --- a/test/language/expressions/class/fields-arrow-fnc-init-err-contains-boolean.js +++ b/test/language/expressions/class/fields-arrow-fnc-init-err-contains-arguments.js @@ -1,5 +1,5 @@ // This file was procedurally generated from the following sources: -// - src/class-fields/init-err-contains-boolean.case +// - src/class-fields/init-err-contains-arguments.case // - src/class-fields/initializer-error/cls-expr-fields-arrow-fnc.template /*--- description: Syntax error if `arguments` used in class field (arrow function expression) diff --git a/test/language/expressions/class/fields-comp-name-init-err-contains-boolean.js b/test/language/expressions/class/fields-comp-name-init-err-contains-arguments.js similarity index 94% rename from test/language/expressions/class/fields-comp-name-init-err-contains-boolean.js rename to test/language/expressions/class/fields-comp-name-init-err-contains-arguments.js index 0feb910d79..2b25a726c8 100644 --- a/test/language/expressions/class/fields-comp-name-init-err-contains-boolean.js +++ b/test/language/expressions/class/fields-comp-name-init-err-contains-arguments.js @@ -1,5 +1,5 @@ // This file was procedurally generated from the following sources: -// - src/class-fields/init-err-contains-boolean.case +// - src/class-fields/init-err-contains-arguments.case // - src/class-fields/initializer-error/cls-expr-fields-comp-name.template /*--- description: Syntax error if `arguments` used in class field (computed ClassElementName) diff --git a/test/language/expressions/class/fields-equality-init-err-contains-boolean.js b/test/language/expressions/class/fields-equality-init-err-contains-arguments.js similarity index 94% rename from test/language/expressions/class/fields-equality-init-err-contains-boolean.js rename to test/language/expressions/class/fields-equality-init-err-contains-arguments.js index 16f6f86668..3ec48af710 100644 --- a/test/language/expressions/class/fields-equality-init-err-contains-boolean.js +++ b/test/language/expressions/class/fields-equality-init-err-contains-arguments.js @@ -1,5 +1,5 @@ // This file was procedurally generated from the following sources: -// - src/class-fields/init-err-contains-boolean.case +// - src/class-fields/init-err-contains-arguments.case // - src/class-fields/initializer-error/cls-expr-fields-equality.template /*--- description: Syntax error if `arguments` used in class field (equality expression) diff --git a/test/language/expressions/class/fields-literal-name-init-err-contains-boolean.js b/test/language/expressions/class/fields-literal-name-init-err-contains-arguments.js similarity index 94% rename from test/language/expressions/class/fields-literal-name-init-err-contains-boolean.js rename to test/language/expressions/class/fields-literal-name-init-err-contains-arguments.js index f876b3f123..4689b509ba 100644 --- a/test/language/expressions/class/fields-literal-name-init-err-contains-boolean.js +++ b/test/language/expressions/class/fields-literal-name-init-err-contains-arguments.js @@ -1,5 +1,5 @@ // This file was procedurally generated from the following sources: -// - src/class-fields/init-err-contains-boolean.case +// - src/class-fields/init-err-contains-arguments.case // - src/class-fields/initializer-error/cls-expr-fields-literal-name.template /*--- description: Syntax error if `arguments` used in class field (literal ClassElementName) diff --git a/test/language/expressions/class/fields-private-arrow-fnc-init-err-contains-arguments.js b/test/language/expressions/class/fields-private-arrow-fnc-init-err-contains-arguments.js new file mode 100644 index 0000000000..25382968ed --- /dev/null +++ b/test/language/expressions/class/fields-private-arrow-fnc-init-err-contains-arguments.js @@ -0,0 +1,34 @@ +// This file was procedurally generated from the following sources: +// - src/class-fields/init-err-contains-arguments.case +// - src/class-fields/initializer-error/cls-expr-fields-private-arrow-fnc.template +/*--- +description: Syntax error if `arguments` used in class field (private field, arrow function expression) +esid: sec-class-definitions-static-semantics-early-errors +features: [class-fields, arrow-function] +flags: [generated] +negative: + phase: early + type: SyntaxError +info: | + Static Semantics: Early Errors + + FieldDefinition: + PropertyNameInitializeropt + + - It is a Syntax Error if ContainsArguments of Initializer is true. + + Static Semantics: ContainsArguments + IdentifierReference : Identifier + + 1. If the StringValue of Identifier is "arguments", return true. + ... + For all other grammatical productions, recurse on all nonterminals. If any piece returns true, then return true. Otherwise return false. + +---*/ + + +throw "Test262: This statement should not be evaluated."; + +var C = class { + #x = () => arguments; +} diff --git a/test/language/expressions/class/fields-private-arrow-fnc-init-err-contains-super.js b/test/language/expressions/class/fields-private-arrow-fnc-init-err-contains-super.js new file mode 100644 index 0000000000..0dc7da904a --- /dev/null +++ b/test/language/expressions/class/fields-private-arrow-fnc-init-err-contains-super.js @@ -0,0 +1,27 @@ +// This file was procedurally generated from the following sources: +// - src/class-fields/init-err-contains-super.case +// - src/class-fields/initializer-error/cls-expr-fields-private-arrow-fnc.template +/*--- +description: Syntax error if `super()` used in class field (private field, arrow function expression) +esid: sec-class-definitions-static-semantics-early-errors +features: [class-fields, arrow-function] +flags: [generated] +negative: + phase: early + type: SyntaxError +info: | + Static Semantics: Early Errors + + FieldDefinition: + PropertyNameInitializeropt + + - It is a Syntax Error if Initializer is present and Initializer Contains SuperCall is true. + +---*/ + + +throw "Test262: This statement should not be evaluated."; + +var C = class { + #x = () => super(); +} diff --git a/test/language/expressions/class/fields-private-literal-name-init-err-contains-arguments.js b/test/language/expressions/class/fields-private-literal-name-init-err-contains-arguments.js new file mode 100644 index 0000000000..39b7cfbf88 --- /dev/null +++ b/test/language/expressions/class/fields-private-literal-name-init-err-contains-arguments.js @@ -0,0 +1,34 @@ +// This file was procedurally generated from the following sources: +// - src/class-fields/init-err-contains-arguments.case +// - src/class-fields/initializer-error/cls-expr-fields-private-name.template +/*--- +description: Syntax error if `arguments` used in class field (ClassElementName PrivateName) +esid: sec-class-definitions-static-semantics-early-errors +features: [class-fields] +flags: [generated] +negative: + phase: early + type: SyntaxError +info: | + Static Semantics: Early Errors + + FieldDefinition: + PropertyNameInitializeropt + + - It is a Syntax Error if ContainsArguments of Initializer is true. + + Static Semantics: ContainsArguments + IdentifierReference : Identifier + + 1. If the StringValue of Identifier is "arguments", return true. + ... + For all other grammatical productions, recurse on all nonterminals. If any piece returns true, then return true. Otherwise return false. + +---*/ + + +throw "Test262: This statement should not be evaluated."; + +var C = class { + #x = arguments; +} diff --git a/test/language/expressions/class/fields-private-literal-name-init-err-contains-super.js b/test/language/expressions/class/fields-private-literal-name-init-err-contains-super.js new file mode 100644 index 0000000000..47d30a74fa --- /dev/null +++ b/test/language/expressions/class/fields-private-literal-name-init-err-contains-super.js @@ -0,0 +1,27 @@ +// This file was procedurally generated from the following sources: +// - src/class-fields/init-err-contains-super.case +// - src/class-fields/initializer-error/cls-expr-fields-private-name.template +/*--- +description: Syntax error if `super()` used in class field (ClassElementName PrivateName) +esid: sec-class-definitions-static-semantics-early-errors +features: [class-fields] +flags: [generated] +negative: + phase: early + type: SyntaxError +info: | + Static Semantics: Early Errors + + FieldDefinition: + PropertyNameInitializeropt + + - It is a Syntax Error if Initializer is present and Initializer Contains SuperCall is true. + +---*/ + + +throw "Test262: This statement should not be evaluated."; + +var C = class { + #x = super(); +} diff --git a/test/language/expressions/class/fields-private-ternary-init-err-contains-arguments.js b/test/language/expressions/class/fields-private-ternary-init-err-contains-arguments.js new file mode 100644 index 0000000000..8e32d8ebbd --- /dev/null +++ b/test/language/expressions/class/fields-private-ternary-init-err-contains-arguments.js @@ -0,0 +1,34 @@ +// This file was procedurally generated from the following sources: +// - src/class-fields/init-err-contains-arguments.case +// - src/class-fields/initializer-error/cls-expr-fields-private-ternary.template +/*--- +description: Syntax error if `arguments` used in class field (private field, ternary expression) +esid: sec-class-definitions-static-semantics-early-errors +features: [class-fields] +flags: [generated] +negative: + phase: early + type: SyntaxError +info: | + Static Semantics: Early Errors + + FieldDefinition: + PropertyNameInitializeropt + + - It is a Syntax Error if ContainsArguments of Initializer is true. + + Static Semantics: ContainsArguments + IdentifierReference : Identifier + + 1. If the StringValue of Identifier is "arguments", return true. + ... + For all other grammatical productions, recurse on all nonterminals. If any piece returns true, then return true. Otherwise return false. + +---*/ + + +throw "Test262: This statement should not be evaluated."; + +var C = class { + #x = true ? {} : arguments; +} diff --git a/test/language/expressions/class/fields-private-ternary-init-err-contains-super.js b/test/language/expressions/class/fields-private-ternary-init-err-contains-super.js new file mode 100644 index 0000000000..cf779b02fd --- /dev/null +++ b/test/language/expressions/class/fields-private-ternary-init-err-contains-super.js @@ -0,0 +1,27 @@ +// This file was procedurally generated from the following sources: +// - src/class-fields/init-err-contains-super.case +// - src/class-fields/initializer-error/cls-expr-fields-private-ternary.template +/*--- +description: Syntax error if `super()` used in class field (private field, ternary expression) +esid: sec-class-definitions-static-semantics-early-errors +features: [class-fields] +flags: [generated] +negative: + phase: early + type: SyntaxError +info: | + Static Semantics: Early Errors + + FieldDefinition: + PropertyNameInitializeropt + + - It is a Syntax Error if Initializer is present and Initializer Contains SuperCall is true. + +---*/ + + +throw "Test262: This statement should not be evaluated."; + +var C = class { + #x = true ? {} : super(); +} diff --git a/test/language/expressions/class/fields-private-typeof-init-err-contains-arguments.js b/test/language/expressions/class/fields-private-typeof-init-err-contains-arguments.js new file mode 100644 index 0000000000..20bf095082 --- /dev/null +++ b/test/language/expressions/class/fields-private-typeof-init-err-contains-arguments.js @@ -0,0 +1,34 @@ +// This file was procedurally generated from the following sources: +// - src/class-fields/init-err-contains-arguments.case +// - src/class-fields/initializer-error/cls-expr-fields-private-typeof.template +/*--- +description: Syntax error if `arguments` used in class field (private field, typeof expression) +esid: sec-class-definitions-static-semantics-early-errors +features: [class-fields] +flags: [generated] +negative: + phase: early + type: SyntaxError +info: | + Static Semantics: Early Errors + + FieldDefinition: + PropertyNameInitializeropt + + - It is a Syntax Error if ContainsArguments of Initializer is true. + + Static Semantics: ContainsArguments + IdentifierReference : Identifier + + 1. If the StringValue of Identifier is "arguments", return true. + ... + For all other grammatical productions, recurse on all nonterminals. If any piece returns true, then return true. Otherwise return false. + +---*/ + + +throw "Test262: This statement should not be evaluated."; + +var C = class { + #x = typeof arguments; +} diff --git a/test/language/expressions/class/fields-private-typeof-init-err-contains-super.js b/test/language/expressions/class/fields-private-typeof-init-err-contains-super.js new file mode 100644 index 0000000000..895f433d0a --- /dev/null +++ b/test/language/expressions/class/fields-private-typeof-init-err-contains-super.js @@ -0,0 +1,27 @@ +// This file was procedurally generated from the following sources: +// - src/class-fields/init-err-contains-super.case +// - src/class-fields/initializer-error/cls-expr-fields-private-typeof.template +/*--- +description: Syntax error if `super()` used in class field (private field, typeof expression) +esid: sec-class-definitions-static-semantics-early-errors +features: [class-fields] +flags: [generated] +negative: + phase: early + type: SyntaxError +info: | + Static Semantics: Early Errors + + FieldDefinition: + PropertyNameInitializeropt + + - It is a Syntax Error if Initializer is present and Initializer Contains SuperCall is true. + +---*/ + + +throw "Test262: This statement should not be evaluated."; + +var C = class { + #x = typeof super(); +} diff --git a/test/language/expressions/class/fields-static-comp-name-init-err-contains-boolean.js b/test/language/expressions/class/fields-static-comp-name-init-err-contains-arguments.js similarity index 94% rename from test/language/expressions/class/fields-static-comp-name-init-err-contains-boolean.js rename to test/language/expressions/class/fields-static-comp-name-init-err-contains-arguments.js index 067fd7e556..da3e9b35bc 100644 --- a/test/language/expressions/class/fields-static-comp-name-init-err-contains-boolean.js +++ b/test/language/expressions/class/fields-static-comp-name-init-err-contains-arguments.js @@ -1,5 +1,5 @@ // This file was procedurally generated from the following sources: -// - src/class-fields/init-err-contains-boolean.case +// - src/class-fields/init-err-contains-arguments.case // - src/class-fields/initializer-error/cls-expr-fields-static-comp-name.template /*--- description: Syntax error if `arguments` used in class field (static computed ClassElementName) diff --git a/test/language/expressions/class/fields-static-literal-init-err-contains-boolean.js b/test/language/expressions/class/fields-static-literal-init-err-contains-arguments.js similarity index 94% rename from test/language/expressions/class/fields-static-literal-init-err-contains-boolean.js rename to test/language/expressions/class/fields-static-literal-init-err-contains-arguments.js index a7a0b9b030..a466e6b330 100644 --- a/test/language/expressions/class/fields-static-literal-init-err-contains-boolean.js +++ b/test/language/expressions/class/fields-static-literal-init-err-contains-arguments.js @@ -1,5 +1,5 @@ // This file was procedurally generated from the following sources: -// - src/class-fields/init-err-contains-boolean.case +// - src/class-fields/init-err-contains-arguments.case // - src/class-fields/initializer-error/cls-expr-fields-static-literal-name.template /*--- description: Syntax error if `arguments` used in class field (static literal ClassElementName) diff --git a/test/language/expressions/class/fields-static-private-init-err-contains-arguments.js b/test/language/expressions/class/fields-static-private-init-err-contains-arguments.js new file mode 100644 index 0000000000..6c91c4cfe2 --- /dev/null +++ b/test/language/expressions/class/fields-static-private-init-err-contains-arguments.js @@ -0,0 +1,34 @@ +// This file was procedurally generated from the following sources: +// - src/class-fields/init-err-contains-arguments.case +// - src/class-fields/initializer-error/cls-expr-fields-static-private-name.template +/*--- +description: Syntax error if `arguments` used in class field (static PrivateName) +esid: sec-class-definitions-static-semantics-early-errors +features: [class-fields] +flags: [generated] +negative: + phase: early + type: SyntaxError +info: | + Static Semantics: Early Errors + + FieldDefinition: + PropertyNameInitializeropt + + - It is a Syntax Error if ContainsArguments of Initializer is true. + + Static Semantics: ContainsArguments + IdentifierReference : Identifier + + 1. If the StringValue of Identifier is "arguments", return true. + ... + For all other grammatical productions, recurse on all nonterminals. If any piece returns true, then return true. Otherwise return false. + +---*/ + + +throw "Test262: This statement should not be evaluated."; + +var C = class { + static #x = arguments; +} diff --git a/test/language/expressions/class/fields-static-private-init-err-contains-super.js b/test/language/expressions/class/fields-static-private-init-err-contains-super.js new file mode 100644 index 0000000000..a6aa2a00e8 --- /dev/null +++ b/test/language/expressions/class/fields-static-private-init-err-contains-super.js @@ -0,0 +1,27 @@ +// This file was procedurally generated from the following sources: +// - src/class-fields/init-err-contains-super.case +// - src/class-fields/initializer-error/cls-expr-fields-static-private-name.template +/*--- +description: Syntax error if `super()` used in class field (static PrivateName) +esid: sec-class-definitions-static-semantics-early-errors +features: [class-fields] +flags: [generated] +negative: + phase: early + type: SyntaxError +info: | + Static Semantics: Early Errors + + FieldDefinition: + PropertyNameInitializeropt + + - It is a Syntax Error if Initializer is present and Initializer Contains SuperCall is true. + +---*/ + + +throw "Test262: This statement should not be evaluated."; + +var C = class { + static #x = super(); +} diff --git a/test/language/expressions/class/fields-static-string-literal-name-init-err-contains-boolean.js b/test/language/expressions/class/fields-static-string-literal-name-init-err-contains-arguments.js similarity index 94% rename from test/language/expressions/class/fields-static-string-literal-name-init-err-contains-boolean.js rename to test/language/expressions/class/fields-static-string-literal-name-init-err-contains-arguments.js index e3027d802d..5b27331adf 100644 --- a/test/language/expressions/class/fields-static-string-literal-name-init-err-contains-boolean.js +++ b/test/language/expressions/class/fields-static-string-literal-name-init-err-contains-arguments.js @@ -1,5 +1,5 @@ // This file was procedurally generated from the following sources: -// - src/class-fields/init-err-contains-boolean.case +// - src/class-fields/init-err-contains-arguments.case // - src/class-fields/initializer-error/cls-expr-fields-static-string-literal-name.template /*--- description: Syntax error if `arguments` used in class field (static string literal ClassElementName) diff --git a/test/language/expressions/class/fields-string-literal-name-init-err-contains-boolean.js b/test/language/expressions/class/fields-string-literal-name-init-err-contains-arguments.js similarity index 94% rename from test/language/expressions/class/fields-string-literal-name-init-err-contains-boolean.js rename to test/language/expressions/class/fields-string-literal-name-init-err-contains-arguments.js index 1fd354365a..22caa5a0e0 100644 --- a/test/language/expressions/class/fields-string-literal-name-init-err-contains-boolean.js +++ b/test/language/expressions/class/fields-string-literal-name-init-err-contains-arguments.js @@ -1,5 +1,5 @@ // This file was procedurally generated from the following sources: -// - src/class-fields/init-err-contains-boolean.case +// - src/class-fields/init-err-contains-arguments.case // - src/class-fields/initializer-error/cls-expr-fields-string-literal-name.template /*--- description: Syntax error if `arguments` used in class field (string literal ClassElementName) diff --git a/test/language/expressions/class/fields-ternary-init-err-contains-boolean.js b/test/language/expressions/class/fields-ternary-init-err-contains-arguments.js similarity index 94% rename from test/language/expressions/class/fields-ternary-init-err-contains-boolean.js rename to test/language/expressions/class/fields-ternary-init-err-contains-arguments.js index b6bea67105..83747f5670 100644 --- a/test/language/expressions/class/fields-ternary-init-err-contains-boolean.js +++ b/test/language/expressions/class/fields-ternary-init-err-contains-arguments.js @@ -1,5 +1,5 @@ // This file was procedurally generated from the following sources: -// - src/class-fields/init-err-contains-boolean.case +// - src/class-fields/init-err-contains-arguments.case // - src/class-fields/initializer-error/cls-expr-fields-ternary.template /*--- description: Syntax error if `arguments` used in class field (ternary expression) diff --git a/test/language/expressions/class/fields-typeof-init-err-contains-boolean.js b/test/language/expressions/class/fields-typeof-init-err-contains-arguments.js similarity index 94% rename from test/language/expressions/class/fields-typeof-init-err-contains-boolean.js rename to test/language/expressions/class/fields-typeof-init-err-contains-arguments.js index 7e40384075..adcc4542f2 100644 --- a/test/language/expressions/class/fields-typeof-init-err-contains-boolean.js +++ b/test/language/expressions/class/fields-typeof-init-err-contains-arguments.js @@ -1,5 +1,5 @@ // This file was procedurally generated from the following sources: -// - src/class-fields/init-err-contains-boolean.case +// - src/class-fields/init-err-contains-arguments.case // - src/class-fields/initializer-error/cls-expr-fields-typeof.template /*--- description: Syntax error if `arguments` used in class field (typeof expression) diff --git a/test/language/statements/class/fields-arrow-fnc-init-err-contains-boolean.js b/test/language/statements/class/fields-arrow-fnc-init-err-contains-arguments.js similarity index 94% rename from test/language/statements/class/fields-arrow-fnc-init-err-contains-boolean.js rename to test/language/statements/class/fields-arrow-fnc-init-err-contains-arguments.js index a234a89f58..9fbf9ce7c3 100644 --- a/test/language/statements/class/fields-arrow-fnc-init-err-contains-boolean.js +++ b/test/language/statements/class/fields-arrow-fnc-init-err-contains-arguments.js @@ -1,5 +1,5 @@ // This file was procedurally generated from the following sources: -// - src/class-fields/init-err-contains-boolean.case +// - src/class-fields/init-err-contains-arguments.case // - src/class-fields/initializer-error/cls-decl-fields-arrow-fnc.template /*--- description: Syntax error if `arguments` used in class field (arrow function expression) diff --git a/test/language/statements/class/fields-comp-name-init-err-contains-boolean.js b/test/language/statements/class/fields-comp-name-init-err-contains-arguments.js similarity index 94% rename from test/language/statements/class/fields-comp-name-init-err-contains-boolean.js rename to test/language/statements/class/fields-comp-name-init-err-contains-arguments.js index ce800b3ba6..ad4c766bab 100644 --- a/test/language/statements/class/fields-comp-name-init-err-contains-boolean.js +++ b/test/language/statements/class/fields-comp-name-init-err-contains-arguments.js @@ -1,5 +1,5 @@ // This file was procedurally generated from the following sources: -// - src/class-fields/init-err-contains-boolean.case +// - src/class-fields/init-err-contains-arguments.case // - src/class-fields/initializer-error/cls-decl-fields-comp-name.template /*--- description: Syntax error if `arguments` used in class field (computed ClassElementName) diff --git a/test/language/statements/class/fields-equality-init-err-contains-boolean.js b/test/language/statements/class/fields-equality-init-err-contains-arguments.js similarity index 94% rename from test/language/statements/class/fields-equality-init-err-contains-boolean.js rename to test/language/statements/class/fields-equality-init-err-contains-arguments.js index 2d8f85536c..0889c42b99 100644 --- a/test/language/statements/class/fields-equality-init-err-contains-boolean.js +++ b/test/language/statements/class/fields-equality-init-err-contains-arguments.js @@ -1,5 +1,5 @@ // This file was procedurally generated from the following sources: -// - src/class-fields/init-err-contains-boolean.case +// - src/class-fields/init-err-contains-arguments.case // - src/class-fields/initializer-error/cls-decl-fields-equality.template /*--- description: Syntax error if `arguments` used in class field (equality expression) diff --git a/test/language/statements/class/fields-literal-name-init-err-contains-boolean.js b/test/language/statements/class/fields-literal-name-init-err-contains-arguments.js similarity index 94% rename from test/language/statements/class/fields-literal-name-init-err-contains-boolean.js rename to test/language/statements/class/fields-literal-name-init-err-contains-arguments.js index f40f586dab..ab39930b27 100644 --- a/test/language/statements/class/fields-literal-name-init-err-contains-boolean.js +++ b/test/language/statements/class/fields-literal-name-init-err-contains-arguments.js @@ -1,5 +1,5 @@ // This file was procedurally generated from the following sources: -// - src/class-fields/init-err-contains-boolean.case +// - src/class-fields/init-err-contains-arguments.case // - src/class-fields/initializer-error/cls-decl-fields-literal-name.template /*--- description: Syntax error if `arguments` used in class field (literal ClassElementName) diff --git a/test/language/statements/class/fields-private-arrow-fnc-init-err-contains-arguments.js b/test/language/statements/class/fields-private-arrow-fnc-init-err-contains-arguments.js new file mode 100644 index 0000000000..eea9bf4d27 --- /dev/null +++ b/test/language/statements/class/fields-private-arrow-fnc-init-err-contains-arguments.js @@ -0,0 +1,35 @@ +// This file was procedurally generated from the following sources: +// - src/class-fields/init-err-contains-arguments.case +// - src/class-fields/initializer-error/cls-decl-fields-private-arrow-fnc.template +/*--- +description: Syntax error if `arguments` used in class field (private field, arrow function expression) +esid: sec-class-definitions-static-semantics-early-errors +features: [class-fields, arrow-function] +flags: [generated] +negative: + phase: early + type: SyntaxError +info: | + Static Semantics: Early Errors + + FieldDefinition: + PropertyNameInitializeropt + + - It is a Syntax Error if ContainsArguments of Initializer is true. + + Static Semantics: ContainsArguments + IdentifierReference : Identifier + + 1. If the StringValue of Identifier is "arguments", return true. + ... + For all other grammatical productions, recurse on all nonterminals. If any piece returns true, then return true. Otherwise return false. + +---*/ + + +throw "Test262: This statement should not be evaluated."; + +class C { + #x = () => arguments; +} + diff --git a/test/language/statements/class/fields-private-arrow-fnc-init-err-contains-super.js b/test/language/statements/class/fields-private-arrow-fnc-init-err-contains-super.js new file mode 100644 index 0000000000..50cfe3ec09 --- /dev/null +++ b/test/language/statements/class/fields-private-arrow-fnc-init-err-contains-super.js @@ -0,0 +1,28 @@ +// This file was procedurally generated from the following sources: +// - src/class-fields/init-err-contains-super.case +// - src/class-fields/initializer-error/cls-decl-fields-private-arrow-fnc.template +/*--- +description: Syntax error if `super()` used in class field (private field, arrow function expression) +esid: sec-class-definitions-static-semantics-early-errors +features: [class-fields, arrow-function] +flags: [generated] +negative: + phase: early + type: SyntaxError +info: | + Static Semantics: Early Errors + + FieldDefinition: + PropertyNameInitializeropt + + - It is a Syntax Error if Initializer is present and Initializer Contains SuperCall is true. + +---*/ + + +throw "Test262: This statement should not be evaluated."; + +class C { + #x = () => super(); +} + diff --git a/test/language/statements/class/fields-private-literal-name-init-err-contains-arguments.js b/test/language/statements/class/fields-private-literal-name-init-err-contains-arguments.js new file mode 100644 index 0000000000..11adaeec7a --- /dev/null +++ b/test/language/statements/class/fields-private-literal-name-init-err-contains-arguments.js @@ -0,0 +1,34 @@ +// This file was procedurally generated from the following sources: +// - src/class-fields/init-err-contains-arguments.case +// - src/class-fields/initializer-error/cls-decl-fields-private-name.template +/*--- +description: Syntax error if `arguments` used in class field (ClassElementName PrivateName) +esid: sec-class-definitions-static-semantics-early-errors +features: [class-fields] +flags: [generated] +negative: + phase: early + type: SyntaxError +info: | + Static Semantics: Early Errors + + FieldDefinition: + PropertyNameInitializeropt + + - It is a Syntax Error if ContainsArguments of Initializer is true. + + Static Semantics: ContainsArguments + IdentifierReference : Identifier + + 1. If the StringValue of Identifier is "arguments", return true. + ... + For all other grammatical productions, recurse on all nonterminals. If any piece returns true, then return true. Otherwise return false. + +---*/ + + +throw "Test262: This statement should not be evaluated."; + +class C { + #x = arguments; +} diff --git a/test/language/statements/class/fields-private-literal-name-init-err-contains-super.js b/test/language/statements/class/fields-private-literal-name-init-err-contains-super.js new file mode 100644 index 0000000000..c234a22943 --- /dev/null +++ b/test/language/statements/class/fields-private-literal-name-init-err-contains-super.js @@ -0,0 +1,27 @@ +// This file was procedurally generated from the following sources: +// - src/class-fields/init-err-contains-super.case +// - src/class-fields/initializer-error/cls-decl-fields-private-name.template +/*--- +description: Syntax error if `super()` used in class field (ClassElementName PrivateName) +esid: sec-class-definitions-static-semantics-early-errors +features: [class-fields] +flags: [generated] +negative: + phase: early + type: SyntaxError +info: | + Static Semantics: Early Errors + + FieldDefinition: + PropertyNameInitializeropt + + - It is a Syntax Error if Initializer is present and Initializer Contains SuperCall is true. + +---*/ + + +throw "Test262: This statement should not be evaluated."; + +class C { + #x = super(); +} diff --git a/test/language/statements/class/fields-private-ternary-init-err-contains-arguments.js b/test/language/statements/class/fields-private-ternary-init-err-contains-arguments.js new file mode 100644 index 0000000000..873c64d810 --- /dev/null +++ b/test/language/statements/class/fields-private-ternary-init-err-contains-arguments.js @@ -0,0 +1,34 @@ +// This file was procedurally generated from the following sources: +// - src/class-fields/init-err-contains-arguments.case +// - src/class-fields/initializer-error/cls-decl-fields-private-ternary.template +/*--- +description: Syntax error if `arguments` used in class field (private field, ternary expression) +esid: sec-class-definitions-static-semantics-early-errors +features: [class-fields] +flags: [generated] +negative: + phase: early + type: SyntaxError +info: | + Static Semantics: Early Errors + + FieldDefinition: + PropertyNameInitializeropt + + - It is a Syntax Error if ContainsArguments of Initializer is true. + + Static Semantics: ContainsArguments + IdentifierReference : Identifier + + 1. If the StringValue of Identifier is "arguments", return true. + ... + For all other grammatical productions, recurse on all nonterminals. If any piece returns true, then return true. Otherwise return false. + +---*/ + + +throw "Test262: This statement should not be evaluated."; + +class C { + #x = false ? {} : arguments; +} diff --git a/test/language/statements/class/fields-private-ternary-init-err-contains-super.js b/test/language/statements/class/fields-private-ternary-init-err-contains-super.js new file mode 100644 index 0000000000..785117d8e5 --- /dev/null +++ b/test/language/statements/class/fields-private-ternary-init-err-contains-super.js @@ -0,0 +1,27 @@ +// This file was procedurally generated from the following sources: +// - src/class-fields/init-err-contains-super.case +// - src/class-fields/initializer-error/cls-decl-fields-private-ternary.template +/*--- +description: Syntax error if `super()` used in class field (private field, ternary expression) +esid: sec-class-definitions-static-semantics-early-errors +features: [class-fields] +flags: [generated] +negative: + phase: early + type: SyntaxError +info: | + Static Semantics: Early Errors + + FieldDefinition: + PropertyNameInitializeropt + + - It is a Syntax Error if Initializer is present and Initializer Contains SuperCall is true. + +---*/ + + +throw "Test262: This statement should not be evaluated."; + +class C { + #x = false ? {} : super(); +} diff --git a/test/language/statements/class/fields-private-typeof-init-err-contains-arguments.js b/test/language/statements/class/fields-private-typeof-init-err-contains-arguments.js new file mode 100644 index 0000000000..ef7d5af286 --- /dev/null +++ b/test/language/statements/class/fields-private-typeof-init-err-contains-arguments.js @@ -0,0 +1,34 @@ +// This file was procedurally generated from the following sources: +// - src/class-fields/init-err-contains-arguments.case +// - src/class-fields/initializer-error/cls-decl-fields-private-typeof.template +/*--- +description: Syntax error if `arguments` used in class field (private field, typeof expression) +esid: sec-class-definitions-static-semantics-early-errors +features: [class-fields] +flags: [generated] +negative: + phase: early + type: SyntaxError +info: | + Static Semantics: Early Errors + + FieldDefinition: + PropertyNameInitializeropt + + - It is a Syntax Error if ContainsArguments of Initializer is true. + + Static Semantics: ContainsArguments + IdentifierReference : Identifier + + 1. If the StringValue of Identifier is "arguments", return true. + ... + For all other grammatical productions, recurse on all nonterminals. If any piece returns true, then return true. Otherwise return false. + +---*/ + + +throw "Test262: This statement should not be evaluated."; + +class C { + #x = typeof arguments; +} diff --git a/test/language/statements/class/fields-private-typeof-init-err-contains-super.js b/test/language/statements/class/fields-private-typeof-init-err-contains-super.js new file mode 100644 index 0000000000..7a623353a3 --- /dev/null +++ b/test/language/statements/class/fields-private-typeof-init-err-contains-super.js @@ -0,0 +1,27 @@ +// This file was procedurally generated from the following sources: +// - src/class-fields/init-err-contains-super.case +// - src/class-fields/initializer-error/cls-decl-fields-private-typeof.template +/*--- +description: Syntax error if `super()` used in class field (private field, typeof expression) +esid: sec-class-definitions-static-semantics-early-errors +features: [class-fields] +flags: [generated] +negative: + phase: early + type: SyntaxError +info: | + Static Semantics: Early Errors + + FieldDefinition: + PropertyNameInitializeropt + + - It is a Syntax Error if Initializer is present and Initializer Contains SuperCall is true. + +---*/ + + +throw "Test262: This statement should not be evaluated."; + +class C { + #x = typeof super(); +} diff --git a/test/language/statements/class/fields-static-comp-name-init-err-contains-boolean.js b/test/language/statements/class/fields-static-comp-name-init-err-contains-arguments.js similarity index 94% rename from test/language/statements/class/fields-static-comp-name-init-err-contains-boolean.js rename to test/language/statements/class/fields-static-comp-name-init-err-contains-arguments.js index fcc3d58c65..d900a93f32 100644 --- a/test/language/statements/class/fields-static-comp-name-init-err-contains-boolean.js +++ b/test/language/statements/class/fields-static-comp-name-init-err-contains-arguments.js @@ -1,5 +1,5 @@ // This file was procedurally generated from the following sources: -// - src/class-fields/init-err-contains-boolean.case +// - src/class-fields/init-err-contains-arguments.case // - src/class-fields/initializer-error/cls-decl-fields-static-comp-name.template /*--- description: Syntax error if `arguments` used in class field (static computed ClassElementName) diff --git a/test/language/statements/class/fields-static-literal-init-err-contains-boolean.js b/test/language/statements/class/fields-static-literal-init-err-contains-arguments.js similarity index 94% rename from test/language/statements/class/fields-static-literal-init-err-contains-boolean.js rename to test/language/statements/class/fields-static-literal-init-err-contains-arguments.js index 867daaeb6c..d617e1f064 100644 --- a/test/language/statements/class/fields-static-literal-init-err-contains-boolean.js +++ b/test/language/statements/class/fields-static-literal-init-err-contains-arguments.js @@ -1,5 +1,5 @@ // This file was procedurally generated from the following sources: -// - src/class-fields/init-err-contains-boolean.case +// - src/class-fields/init-err-contains-arguments.case // - src/class-fields/initializer-error/cls-decl-fields-static-literal-name.template /*--- description: Syntax error if `arguments` used in class field (static literal ClassElementName) diff --git a/test/language/statements/class/fields-static-private-init-err-contains-arguments.js b/test/language/statements/class/fields-static-private-init-err-contains-arguments.js new file mode 100644 index 0000000000..ff0698b4db --- /dev/null +++ b/test/language/statements/class/fields-static-private-init-err-contains-arguments.js @@ -0,0 +1,34 @@ +// This file was procedurally generated from the following sources: +// - src/class-fields/init-err-contains-arguments.case +// - src/class-fields/initializer-error/cls-decl-fields-static-private-name.template +/*--- +description: Syntax error if `arguments` used in class field (static PrivateName) +esid: sec-class-definitions-static-semantics-early-errors +features: [class-fields] +flags: [generated] +negative: + phase: early + type: SyntaxError +info: | + Static Semantics: Early Errors + + FieldDefinition: + PropertyNameInitializeropt + + - It is a Syntax Error if ContainsArguments of Initializer is true. + + Static Semantics: ContainsArguments + IdentifierReference : Identifier + + 1. If the StringValue of Identifier is "arguments", return true. + ... + For all other grammatical productions, recurse on all nonterminals. If any piece returns true, then return true. Otherwise return false. + +---*/ + + +throw "Test262: This statement should not be evaluated."; + +class C { + static #x = arguments; +} diff --git a/test/language/statements/class/fields-static-private-init-err-contains-super.js b/test/language/statements/class/fields-static-private-init-err-contains-super.js new file mode 100644 index 0000000000..7e72af1e41 --- /dev/null +++ b/test/language/statements/class/fields-static-private-init-err-contains-super.js @@ -0,0 +1,27 @@ +// This file was procedurally generated from the following sources: +// - src/class-fields/init-err-contains-super.case +// - src/class-fields/initializer-error/cls-decl-fields-static-private-name.template +/*--- +description: Syntax error if `super()` used in class field (static PrivateName) +esid: sec-class-definitions-static-semantics-early-errors +features: [class-fields] +flags: [generated] +negative: + phase: early + type: SyntaxError +info: | + Static Semantics: Early Errors + + FieldDefinition: + PropertyNameInitializeropt + + - It is a Syntax Error if Initializer is present and Initializer Contains SuperCall is true. + +---*/ + + +throw "Test262: This statement should not be evaluated."; + +class C { + static #x = super(); +} diff --git a/test/language/statements/class/fields-static-string-literal-name-init-err-contains-boolean.js b/test/language/statements/class/fields-static-string-literal-name-init-err-contains-arguments.js similarity index 94% rename from test/language/statements/class/fields-static-string-literal-name-init-err-contains-boolean.js rename to test/language/statements/class/fields-static-string-literal-name-init-err-contains-arguments.js index 1731f8a8d4..cdb9da011d 100644 --- a/test/language/statements/class/fields-static-string-literal-name-init-err-contains-boolean.js +++ b/test/language/statements/class/fields-static-string-literal-name-init-err-contains-arguments.js @@ -1,5 +1,5 @@ // This file was procedurally generated from the following sources: -// - src/class-fields/init-err-contains-boolean.case +// - src/class-fields/init-err-contains-arguments.case // - src/class-fields/initializer-error/cls-decl-fields-static-string-literal-name.template /*--- description: Syntax error if `arguments` used in class field (static string literal ClassElementName) diff --git a/test/language/statements/class/fields-string-literal-name-init-err-contains-boolean.js b/test/language/statements/class/fields-string-literal-name-init-err-contains-arguments.js similarity index 94% rename from test/language/statements/class/fields-string-literal-name-init-err-contains-boolean.js rename to test/language/statements/class/fields-string-literal-name-init-err-contains-arguments.js index 9f5de255f3..ddeae856b2 100644 --- a/test/language/statements/class/fields-string-literal-name-init-err-contains-boolean.js +++ b/test/language/statements/class/fields-string-literal-name-init-err-contains-arguments.js @@ -1,5 +1,5 @@ // This file was procedurally generated from the following sources: -// - src/class-fields/init-err-contains-boolean.case +// - src/class-fields/init-err-contains-arguments.case // - src/class-fields/initializer-error/cls-decl-fields-string-literal-name.template /*--- description: Syntax error if `arguments` used in class field (string literal ClassElementName) diff --git a/test/language/statements/class/fields-ternary-init-err-contains-boolean.js b/test/language/statements/class/fields-ternary-init-err-contains-arguments.js similarity index 94% rename from test/language/statements/class/fields-ternary-init-err-contains-boolean.js rename to test/language/statements/class/fields-ternary-init-err-contains-arguments.js index 45cdb53d16..af78de6bfb 100644 --- a/test/language/statements/class/fields-ternary-init-err-contains-boolean.js +++ b/test/language/statements/class/fields-ternary-init-err-contains-arguments.js @@ -1,5 +1,5 @@ // This file was procedurally generated from the following sources: -// - src/class-fields/init-err-contains-boolean.case +// - src/class-fields/init-err-contains-arguments.case // - src/class-fields/initializer-error/cls-decl-fields-ternary.template /*--- description: Syntax error if `arguments` used in class field (ternary expression) diff --git a/test/language/statements/class/fields-typeof-init-err-contains-boolean.js b/test/language/statements/class/fields-typeof-init-err-contains-arguments.js similarity index 94% rename from test/language/statements/class/fields-typeof-init-err-contains-boolean.js rename to test/language/statements/class/fields-typeof-init-err-contains-arguments.js index 54cb091677..118db90ab3 100644 --- a/test/language/statements/class/fields-typeof-init-err-contains-boolean.js +++ b/test/language/statements/class/fields-typeof-init-err-contains-arguments.js @@ -1,5 +1,5 @@ // This file was procedurally generated from the following sources: -// - src/class-fields/init-err-contains-boolean.case +// - src/class-fields/init-err-contains-arguments.case // - src/class-fields/initializer-error/cls-decl-fields-typeof.template /*--- description: Syntax error if `arguments` used in class field (typeof expression)