diff --git a/test/language/expressions/class/syntax/early-error/grammar-static-async-gen-meth-prototype.js b/test/language/expressions/class/syntax/early-error/grammar-static-async-gen-meth-prototype.js new file mode 100644 index 0000000000..18991777c1 --- /dev/null +++ b/test/language/expressions/class/syntax/early-error/grammar-static-async-gen-meth-prototype.js @@ -0,0 +1,25 @@ +// This file was procedurally generated from the following sources: +// - src/class-elements/grammar-static-async-gen-meth-prototype.case +// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template +/*--- +description: Static Async Generator Methods cannot be named prototype (class expression) +esid: prod-ClassElement +features: [async-iteration, class] +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + Class Definitions / Static Semantics: Early Errors + + ClassElement : static MethodDefinition + It is a Syntax Error if PropName of MethodDefinition is "prototype" + +---*/ + + +throw "Test262: This statement should not be evaluated."; + +var C = class { + static async * prototype() {} +}; diff --git a/test/language/expressions/class/syntax/early-error/grammar-static-async-meth-prototype.js b/test/language/expressions/class/syntax/early-error/grammar-static-async-meth-prototype.js new file mode 100644 index 0000000000..f0882842a1 --- /dev/null +++ b/test/language/expressions/class/syntax/early-error/grammar-static-async-meth-prototype.js @@ -0,0 +1,25 @@ +// This file was procedurally generated from the following sources: +// - src/class-elements/grammar-static-async-meth-prototype.case +// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template +/*--- +description: Static Async Methods cannot be named prototype (class expression) +esid: prod-ClassElement +features: [async-functions, class] +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + Class Definitions / Static Semantics: Early Errors + + ClassElement : static MethodDefinition + It is a Syntax Error if PropName of MethodDefinition is "prototype" + +---*/ + + +throw "Test262: This statement should not be evaluated."; + +var C = class { + static async prototype() {} +}; diff --git a/test/language/expressions/class/syntax/early-error/grammar-static-gen-meth-prototype.js b/test/language/expressions/class/syntax/early-error/grammar-static-gen-meth-prototype.js new file mode 100644 index 0000000000..f4b4e6e779 --- /dev/null +++ b/test/language/expressions/class/syntax/early-error/grammar-static-gen-meth-prototype.js @@ -0,0 +1,25 @@ +// This file was procedurally generated from the following sources: +// - src/class-elements/grammar-static-gen-meth-prototype.case +// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template +/*--- +description: Static Generator Methods cannot be named prototype (class expression) +esid: prod-ClassElement +features: [generators, class] +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + Class Definitions / Static Semantics: Early Errors + + ClassElement : static MethodDefinition + It is a Syntax Error if PropName of MethodDefinition is "prototype" + +---*/ + + +throw "Test262: This statement should not be evaluated."; + +var C = class { + static * prototype() {} +}; diff --git a/test/language/expressions/class/syntax/early-error/grammar-static-get-meth-prototype.js b/test/language/expressions/class/syntax/early-error/grammar-static-get-meth-prototype.js new file mode 100644 index 0000000000..0c060817b1 --- /dev/null +++ b/test/language/expressions/class/syntax/early-error/grammar-static-get-meth-prototype.js @@ -0,0 +1,25 @@ +// This file was procedurally generated from the following sources: +// - src/class-elements/grammar-static-get-meth-prototype.case +// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template +/*--- +description: Static Accessor get Methods cannot be named prototype (class expression) +esid: prod-ClassElement +features: [class] +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + Class Definitions / Static Semantics: Early Errors + + ClassElement : static MethodDefinition + It is a Syntax Error if PropName of MethodDefinition is "prototype" + +---*/ + + +throw "Test262: This statement should not be evaluated."; + +var C = class { + static get prototype() {} +}; diff --git a/test/language/expressions/class/syntax/early-error/grammar-static-meth-prototype.js b/test/language/expressions/class/syntax/early-error/grammar-static-meth-prototype.js new file mode 100644 index 0000000000..40263c6799 --- /dev/null +++ b/test/language/expressions/class/syntax/early-error/grammar-static-meth-prototype.js @@ -0,0 +1,25 @@ +// This file was procedurally generated from the following sources: +// - src/class-elements/grammar-static-meth-prototype.case +// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template +/*--- +description: Static Methods cannot be named prototype (class expression) +esid: prod-ClassElement +features: [class] +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + Class Definitions / Static Semantics: Early Errors + + ClassElement : static MethodDefinition + It is a Syntax Error if PropName of MethodDefinition is "prototype" + +---*/ + + +throw "Test262: This statement should not be evaluated."; + +var C = class { + static prototype() {} +}; diff --git a/test/language/expressions/class/syntax/early-error/grammar-static-set-meth-prototype.js b/test/language/expressions/class/syntax/early-error/grammar-static-set-meth-prototype.js new file mode 100644 index 0000000000..0e675f4a87 --- /dev/null +++ b/test/language/expressions/class/syntax/early-error/grammar-static-set-meth-prototype.js @@ -0,0 +1,25 @@ +// This file was procedurally generated from the following sources: +// - src/class-elements/grammar-static-set-meth-prototype.case +// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template +/*--- +description: Static Accessor set Methods cannot be named prototype (class expression) +esid: prod-ClassElement +features: [class] +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + Class Definitions / Static Semantics: Early Errors + + ClassElement : static MethodDefinition + It is a Syntax Error if PropName of MethodDefinition is "prototype" + +---*/ + + +throw "Test262: This statement should not be evaluated."; + +var C = class { + static set prototype() {} +}; diff --git a/test/language/expressions/class/syntax/valid/grammar-static-private-async-gen-meth-prototype.js b/test/language/expressions/class/syntax/valid/grammar-static-private-async-gen-meth-prototype.js new file mode 100644 index 0000000000..1f19d0ef4b --- /dev/null +++ b/test/language/expressions/class/syntax/valid/grammar-static-private-async-gen-meth-prototype.js @@ -0,0 +1,20 @@ +// This file was procedurally generated from the following sources: +// - src/class-elements/grammar-static-private-async-gen-meth-prototype.case +// - src/class-elements/syntax/valid/cls-expr-elements-valid-syntax.template +/*--- +description: Static Async Generator Private Methods can be named prototype (class expression) +esid: prod-ClassElement +features: [async-iteration, class-static-methods-private, class] +flags: [generated] +info: | + Class Definitions / Static Semantics: Early Errors + + ClassElement : static MethodDefinition + It is a Syntax Error if PropName of MethodDefinition is "prototype" + +---*/ + + +var C = class { + static async * #prototype() {} +}; diff --git a/test/language/expressions/class/syntax/valid/grammar-static-private-async-meth-prototype.js b/test/language/expressions/class/syntax/valid/grammar-static-private-async-meth-prototype.js new file mode 100644 index 0000000000..d8a3023b95 --- /dev/null +++ b/test/language/expressions/class/syntax/valid/grammar-static-private-async-meth-prototype.js @@ -0,0 +1,20 @@ +// This file was procedurally generated from the following sources: +// - src/class-elements/grammar-static-private-async-meth-prototype.case +// - src/class-elements/syntax/valid/cls-expr-elements-valid-syntax.template +/*--- +description: Static Async Private Methods can be named prototype (class expression) +esid: prod-ClassElement +features: [async-functions, class-static-methods-private, class] +flags: [generated] +info: | + Class Definitions / Static Semantics: Early Errors + + ClassElement : static MethodDefinition + It is a Syntax Error if PropName of MethodDefinition is "prototype" + +---*/ + + +var C = class { + static async #prototype() {} +}; diff --git a/test/language/expressions/class/syntax/valid/grammar-static-private-gen-meth-prototype.js b/test/language/expressions/class/syntax/valid/grammar-static-private-gen-meth-prototype.js new file mode 100644 index 0000000000..22e6f62cdb --- /dev/null +++ b/test/language/expressions/class/syntax/valid/grammar-static-private-gen-meth-prototype.js @@ -0,0 +1,20 @@ +// This file was procedurally generated from the following sources: +// - src/class-elements/grammar-static-private-gen-meth-prototype.case +// - src/class-elements/syntax/valid/cls-expr-elements-valid-syntax.template +/*--- +description: Static Generator Private Methods can be named prototype (class expression) +esid: prod-ClassElement +features: [generators, class-static-methods-private, class] +flags: [generated] +info: | + Class Definitions / Static Semantics: Early Errors + + ClassElement : static MethodDefinition + It is a Syntax Error if PropName of MethodDefinition is "prototype" + +---*/ + + +var C = class { + static * #prototype() {} +}; diff --git a/test/language/expressions/class/syntax/valid/grammar-static-private-meth-prototype.js b/test/language/expressions/class/syntax/valid/grammar-static-private-meth-prototype.js new file mode 100644 index 0000000000..186104cf2b --- /dev/null +++ b/test/language/expressions/class/syntax/valid/grammar-static-private-meth-prototype.js @@ -0,0 +1,20 @@ +// This file was procedurally generated from the following sources: +// - src/class-elements/grammar-static-private-meth-prototype.case +// - src/class-elements/syntax/valid/cls-expr-elements-valid-syntax.template +/*--- +description: Static Private Methods can be named prototype (class expression) +esid: prod-ClassElement +features: [class-static-methods-private, class] +flags: [generated] +info: | + Class Definitions / Static Semantics: Early Errors + + ClassElement : static MethodDefinition + It is a Syntax Error if PropName of MethodDefinition is "prototype" + +---*/ + + +var C = class { + static #prototype() {} +}; diff --git a/test/language/statements/class/syntax/early-error/grammar-static-async-gen-meth-prototype.js b/test/language/statements/class/syntax/early-error/grammar-static-async-gen-meth-prototype.js new file mode 100644 index 0000000000..d7f677c87e --- /dev/null +++ b/test/language/statements/class/syntax/early-error/grammar-static-async-gen-meth-prototype.js @@ -0,0 +1,25 @@ +// This file was procedurally generated from the following sources: +// - src/class-elements/grammar-static-async-gen-meth-prototype.case +// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template +/*--- +description: Static Async Generator Methods cannot be named prototype (class declaration) +esid: prod-ClassElement +features: [async-iteration, class] +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + Class Definitions / Static Semantics: Early Errors + + ClassElement : static MethodDefinition + It is a Syntax Error if PropName of MethodDefinition is "prototype" + +---*/ + + +throw "Test262: This statement should not be evaluated."; + +class C { + static async * prototype() {} +} diff --git a/test/language/statements/class/syntax/early-error/grammar-static-async-meth-prototype.js b/test/language/statements/class/syntax/early-error/grammar-static-async-meth-prototype.js new file mode 100644 index 0000000000..f642d0afd6 --- /dev/null +++ b/test/language/statements/class/syntax/early-error/grammar-static-async-meth-prototype.js @@ -0,0 +1,25 @@ +// This file was procedurally generated from the following sources: +// - src/class-elements/grammar-static-async-meth-prototype.case +// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template +/*--- +description: Static Async Methods cannot be named prototype (class declaration) +esid: prod-ClassElement +features: [async-functions, class] +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + Class Definitions / Static Semantics: Early Errors + + ClassElement : static MethodDefinition + It is a Syntax Error if PropName of MethodDefinition is "prototype" + +---*/ + + +throw "Test262: This statement should not be evaluated."; + +class C { + static async prototype() {} +} diff --git a/test/language/statements/class/syntax/early-error/grammar-static-gen-meth-prototype.js b/test/language/statements/class/syntax/early-error/grammar-static-gen-meth-prototype.js new file mode 100644 index 0000000000..986f7f00f9 --- /dev/null +++ b/test/language/statements/class/syntax/early-error/grammar-static-gen-meth-prototype.js @@ -0,0 +1,25 @@ +// This file was procedurally generated from the following sources: +// - src/class-elements/grammar-static-gen-meth-prototype.case +// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template +/*--- +description: Static Generator Methods cannot be named prototype (class declaration) +esid: prod-ClassElement +features: [generators, class] +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + Class Definitions / Static Semantics: Early Errors + + ClassElement : static MethodDefinition + It is a Syntax Error if PropName of MethodDefinition is "prototype" + +---*/ + + +throw "Test262: This statement should not be evaluated."; + +class C { + static * prototype() {} +} diff --git a/test/language/statements/class/syntax/early-error/grammar-static-get-meth-prototype.js b/test/language/statements/class/syntax/early-error/grammar-static-get-meth-prototype.js new file mode 100644 index 0000000000..6f24c3418d --- /dev/null +++ b/test/language/statements/class/syntax/early-error/grammar-static-get-meth-prototype.js @@ -0,0 +1,25 @@ +// This file was procedurally generated from the following sources: +// - src/class-elements/grammar-static-get-meth-prototype.case +// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template +/*--- +description: Static Accessor get Methods cannot be named prototype (class declaration) +esid: prod-ClassElement +features: [class] +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + Class Definitions / Static Semantics: Early Errors + + ClassElement : static MethodDefinition + It is a Syntax Error if PropName of MethodDefinition is "prototype" + +---*/ + + +throw "Test262: This statement should not be evaluated."; + +class C { + static get prototype() {} +} diff --git a/test/language/statements/class/syntax/early-error/grammar-static-meth-prototype.js b/test/language/statements/class/syntax/early-error/grammar-static-meth-prototype.js new file mode 100644 index 0000000000..92ab353af5 --- /dev/null +++ b/test/language/statements/class/syntax/early-error/grammar-static-meth-prototype.js @@ -0,0 +1,25 @@ +// This file was procedurally generated from the following sources: +// - src/class-elements/grammar-static-meth-prototype.case +// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template +/*--- +description: Static Methods cannot be named prototype (class declaration) +esid: prod-ClassElement +features: [class] +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + Class Definitions / Static Semantics: Early Errors + + ClassElement : static MethodDefinition + It is a Syntax Error if PropName of MethodDefinition is "prototype" + +---*/ + + +throw "Test262: This statement should not be evaluated."; + +class C { + static prototype() {} +} diff --git a/test/language/statements/class/syntax/early-error/grammar-static-set-meth-prototype.js b/test/language/statements/class/syntax/early-error/grammar-static-set-meth-prototype.js new file mode 100644 index 0000000000..1de086e4f4 --- /dev/null +++ b/test/language/statements/class/syntax/early-error/grammar-static-set-meth-prototype.js @@ -0,0 +1,25 @@ +// This file was procedurally generated from the following sources: +// - src/class-elements/grammar-static-set-meth-prototype.case +// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template +/*--- +description: Static Accessor set Methods cannot be named prototype (class declaration) +esid: prod-ClassElement +features: [class] +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + Class Definitions / Static Semantics: Early Errors + + ClassElement : static MethodDefinition + It is a Syntax Error if PropName of MethodDefinition is "prototype" + +---*/ + + +throw "Test262: This statement should not be evaluated."; + +class C { + static set prototype() {} +} diff --git a/test/language/statements/class/syntax/valid/grammar-static-private-async-gen-meth-prototype.js b/test/language/statements/class/syntax/valid/grammar-static-private-async-gen-meth-prototype.js new file mode 100644 index 0000000000..06b509c97b --- /dev/null +++ b/test/language/statements/class/syntax/valid/grammar-static-private-async-gen-meth-prototype.js @@ -0,0 +1,20 @@ +// This file was procedurally generated from the following sources: +// - src/class-elements/grammar-static-private-async-gen-meth-prototype.case +// - src/class-elements/syntax/valid/cls-decl-elements-valid-syntax.template +/*--- +description: Static Async Generator Private Methods can be named prototype (class declaration) +esid: prod-ClassElement +features: [async-iteration, class-static-methods-private, class] +flags: [generated] +info: | + Class Definitions / Static Semantics: Early Errors + + ClassElement : static MethodDefinition + It is a Syntax Error if PropName of MethodDefinition is "prototype" + +---*/ + + +class C { + static async * #prototype() {} +} diff --git a/test/language/statements/class/syntax/valid/grammar-static-private-async-meth-prototype.js b/test/language/statements/class/syntax/valid/grammar-static-private-async-meth-prototype.js new file mode 100644 index 0000000000..376df2d768 --- /dev/null +++ b/test/language/statements/class/syntax/valid/grammar-static-private-async-meth-prototype.js @@ -0,0 +1,20 @@ +// This file was procedurally generated from the following sources: +// - src/class-elements/grammar-static-private-async-meth-prototype.case +// - src/class-elements/syntax/valid/cls-decl-elements-valid-syntax.template +/*--- +description: Static Async Private Methods can be named prototype (class declaration) +esid: prod-ClassElement +features: [async-functions, class-static-methods-private, class] +flags: [generated] +info: | + Class Definitions / Static Semantics: Early Errors + + ClassElement : static MethodDefinition + It is a Syntax Error if PropName of MethodDefinition is "prototype" + +---*/ + + +class C { + static async #prototype() {} +} diff --git a/test/language/statements/class/syntax/valid/grammar-static-private-gen-meth-prototype.js b/test/language/statements/class/syntax/valid/grammar-static-private-gen-meth-prototype.js new file mode 100644 index 0000000000..56bb3105ce --- /dev/null +++ b/test/language/statements/class/syntax/valid/grammar-static-private-gen-meth-prototype.js @@ -0,0 +1,20 @@ +// This file was procedurally generated from the following sources: +// - src/class-elements/grammar-static-private-gen-meth-prototype.case +// - src/class-elements/syntax/valid/cls-decl-elements-valid-syntax.template +/*--- +description: Static Generator Private Methods can be named prototype (class declaration) +esid: prod-ClassElement +features: [generators, class-static-methods-private, class] +flags: [generated] +info: | + Class Definitions / Static Semantics: Early Errors + + ClassElement : static MethodDefinition + It is a Syntax Error if PropName of MethodDefinition is "prototype" + +---*/ + + +class C { + static * #prototype() {} +} diff --git a/test/language/statements/class/syntax/valid/grammar-static-private-meth-prototype.js b/test/language/statements/class/syntax/valid/grammar-static-private-meth-prototype.js new file mode 100644 index 0000000000..111315c043 --- /dev/null +++ b/test/language/statements/class/syntax/valid/grammar-static-private-meth-prototype.js @@ -0,0 +1,20 @@ +// This file was procedurally generated from the following sources: +// - src/class-elements/grammar-static-private-meth-prototype.case +// - src/class-elements/syntax/valid/cls-decl-elements-valid-syntax.template +/*--- +description: Static Private Methods can be named prototype (class declaration) +esid: prod-ClassElement +features: [class-static-methods-private, class] +flags: [generated] +info: | + Class Definitions / Static Semantics: Early Errors + + ClassElement : static MethodDefinition + It is a Syntax Error if PropName of MethodDefinition is "prototype" + +---*/ + + +class C { + static #prototype() {} +}