diff --git a/test/language/expressions/class/syntax/early-errors/grammar-static-private-ctor-meth-valid.js b/test/language/expressions/class/syntax/early-errors/grammar-static-private-ctor-meth-valid.js new file mode 100644 index 0000000000000000000000000000000000000000..1b5f2e7eab998ed81a7f77a20c556a1c7cd64491 --- /dev/null +++ b/test/language/expressions/class/syntax/early-errors/grammar-static-private-ctor-meth-valid.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/class-elements/grammar-static-private-ctor-meth-valid.case +// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template +/*--- +description: Static Methods can be named constructor (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 constructor() {} + constructor() {} // stacks with a valid constructor +}; diff --git a/test/language/expressions/class/syntax/valid/grammar-static-ctor-accessor-meth-valid.js b/test/language/expressions/class/syntax/valid/grammar-static-ctor-accessor-meth-valid.js new file mode 100644 index 0000000000000000000000000000000000000000..86f0bb41fecf5df43342dd6b84f4e566a9a71a45 --- /dev/null +++ b/test/language/expressions/class/syntax/valid/grammar-static-ctor-accessor-meth-valid.js @@ -0,0 +1,30 @@ +// This file was procedurally generated from the following sources: +// - src/class-elements/grammar-static-ctor-accessor-meth-valid.case +// - src/class-elements/syntax/valid/cls-expr-elements-valid-syntax.template +/*--- +description: Static Accessor Methods can be named constructor (class expression) +esid: prod-ClassElement +features: [class] +flags: [generated] +info: | + Class Definitions / Static Semantics: Early Errors + + ClassElement : MethodDefinition + It is a Syntax Error if PropName of MethodDefinition is not "constructor" and HasDirectSuper of MethodDefinition is true. + It is a Syntax Error if PropName of MethodDefinition is "constructor" and SpecialMethod of MethodDefinition is true. + ClassElement : static MethodDefinition + It is a Syntax Error if HasDirectSuper of MethodDefinition is true. + It is a Syntax Error if PropName of MethodDefinition is "prototype". + +---*/ + + +var C = class { + static get constructor() {} + static set constructor() {} + constructor() {} // stacks with a valid constructor +}; + +assert(C.hasOwnProperty('constructor')); +assert(C.prototype.hasOwnProperty('constructor')); +assert.notSameValue(C.prototype.constructor, C.constructor); diff --git a/test/language/expressions/class/syntax/valid/grammar-static-ctor-async-gen-meth-valid.js b/test/language/expressions/class/syntax/valid/grammar-static-ctor-async-gen-meth-valid.js new file mode 100644 index 0000000000000000000000000000000000000000..3723ba9f2f468885f9df55115bdd8dac5644b3af --- /dev/null +++ b/test/language/expressions/class/syntax/valid/grammar-static-ctor-async-gen-meth-valid.js @@ -0,0 +1,29 @@ +// This file was procedurally generated from the following sources: +// - src/class-elements/grammar-static-ctor-async-gen-meth-valid.case +// - src/class-elements/syntax/valid/cls-expr-elements-valid-syntax.template +/*--- +description: Static Async Generator Methods can be named constructor (class expression) +esid: prod-ClassElement +features: [async-iteration, class] +flags: [generated] +info: | + Class Definitions / Static Semantics: Early Errors + + ClassElement : MethodDefinition + It is a Syntax Error if PropName of MethodDefinition is not "constructor" and HasDirectSuper of MethodDefinition is true. + It is a Syntax Error if PropName of MethodDefinition is "constructor" and SpecialMethod of MethodDefinition is true. + ClassElement : static MethodDefinition + It is a Syntax Error if HasDirectSuper of MethodDefinition is true. + It is a Syntax Error if PropName of MethodDefinition is "prototype". + +---*/ + + +var C = class { + static async * constructor() {} + constructor() {} // stacks with a valid constructor +}; + +assert(C.hasOwnProperty('constructor')); +assert(C.prototype.hasOwnProperty('constructor')); +assert.notSameValue(C.prototype.constructor, C.constructor); diff --git a/test/language/expressions/class/syntax/valid/grammar-static-ctor-async-meth-valid.js b/test/language/expressions/class/syntax/valid/grammar-static-ctor-async-meth-valid.js new file mode 100644 index 0000000000000000000000000000000000000000..c61bfbee99a032bafa3c50fd45f750ab2a6f509e --- /dev/null +++ b/test/language/expressions/class/syntax/valid/grammar-static-ctor-async-meth-valid.js @@ -0,0 +1,29 @@ +// This file was procedurally generated from the following sources: +// - src/class-elements/grammar-static-ctor-async-meth-valid.case +// - src/class-elements/syntax/valid/cls-expr-elements-valid-syntax.template +/*--- +description: Static Methods can be named constructor (class expression) +esid: prod-ClassElement +features: [async-functions, class] +flags: [generated] +info: | + Class Definitions / Static Semantics: Early Errors + + ClassElement : MethodDefinition + It is a Syntax Error if PropName of MethodDefinition is not "constructor" and HasDirectSuper of MethodDefinition is true. + It is a Syntax Error if PropName of MethodDefinition is "constructor" and SpecialMethod of MethodDefinition is true. + ClassElement : static MethodDefinition + It is a Syntax Error if HasDirectSuper of MethodDefinition is true. + It is a Syntax Error if PropName of MethodDefinition is "prototype". + +---*/ + + +var C = class { + static async constructor() {} + constructor() {} // stacks with a valid constructor +}; + +assert(C.hasOwnProperty('constructor')); +assert(C.prototype.hasOwnProperty('constructor')); +assert.notSameValue(C.prototype.constructor, C.constructor); diff --git a/test/language/expressions/class/syntax/valid/grammar-static-ctor-gen-meth-valid.js b/test/language/expressions/class/syntax/valid/grammar-static-ctor-gen-meth-valid.js new file mode 100644 index 0000000000000000000000000000000000000000..8423f2e79e6e4767821c045de9d57b4ae75f7fd3 --- /dev/null +++ b/test/language/expressions/class/syntax/valid/grammar-static-ctor-gen-meth-valid.js @@ -0,0 +1,29 @@ +// This file was procedurally generated from the following sources: +// - src/class-elements/grammar-static-ctor-gen-meth-valid.case +// - src/class-elements/syntax/valid/cls-expr-elements-valid-syntax.template +/*--- +description: Static Generator Methods can be named constructor (class expression) +esid: prod-ClassElement +features: [generators, class] +flags: [generated] +info: | + Class Definitions / Static Semantics: Early Errors + + ClassElement : MethodDefinition + It is a Syntax Error if PropName of MethodDefinition is not "constructor" and HasDirectSuper of MethodDefinition is true. + It is a Syntax Error if PropName of MethodDefinition is "constructor" and SpecialMethod of MethodDefinition is true. + ClassElement : static MethodDefinition + It is a Syntax Error if HasDirectSuper of MethodDefinition is true. + It is a Syntax Error if PropName of MethodDefinition is "prototype". + +---*/ + + +var C = class { + static * constructor() {} + constructor() {} // stacks with a valid constructor +}; + +assert(C.hasOwnProperty('constructor')); +assert(C.prototype.hasOwnProperty('constructor')); +assert.notSameValue(C.prototype.constructor, C.constructor); diff --git a/test/language/expressions/class/syntax/valid/grammar-static-ctor-meth-valid.js b/test/language/expressions/class/syntax/valid/grammar-static-ctor-meth-valid.js new file mode 100644 index 0000000000000000000000000000000000000000..b0eff3a115cdc134973a29fe84e9af70a82a489e --- /dev/null +++ b/test/language/expressions/class/syntax/valid/grammar-static-ctor-meth-valid.js @@ -0,0 +1,29 @@ +// This file was procedurally generated from the following sources: +// - src/class-elements/grammar-static-ctor-meth-valid.case +// - src/class-elements/syntax/valid/cls-expr-elements-valid-syntax.template +/*--- +description: Static Methods can be named constructor (class expression) +esid: prod-ClassElement +features: [class] +flags: [generated] +info: | + Class Definitions / Static Semantics: Early Errors + + ClassElement : MethodDefinition + It is a Syntax Error if PropName of MethodDefinition is not "constructor" and HasDirectSuper of MethodDefinition is true. + It is a Syntax Error if PropName of MethodDefinition is "constructor" and SpecialMethod of MethodDefinition is true. + ClassElement : static MethodDefinition + It is a Syntax Error if HasDirectSuper of MethodDefinition is true. + It is a Syntax Error if PropName of MethodDefinition is "prototype". + +---*/ + + +var C = class { + static constructor() {} + constructor() {} // stacks with a valid constructor +}; + +assert(C.hasOwnProperty('constructor')); +assert(C.prototype.hasOwnProperty('constructor')); +assert.notSameValue(C.prototype.constructor, C.constructor); 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 index 1f19d0ef4b6aff20c1d69e3b813cbe8b6eeacb6b..3abadc4a59ee83dc8ee43b7e14bf83dd85acc674 100644 --- 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 @@ -2,7 +2,7 @@ // - 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) +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] 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 index d8a3023b9525c700b82aa07465836d6a88b0778e..a1aa052469d922159a9f5d0571970b4f744ec46c 100644 --- 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 @@ -2,7 +2,7 @@ // - 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) +description: Static Async Private Methods can be named "#prototype" (class expression) esid: prod-ClassElement features: [async-functions, class-static-methods-private, class] flags: [generated] 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 index 22e6f62cdb843cdf21a0346b2c852b9006dd2bfd..eebf4a82398bb115623698d8994a9d435d239c30 100644 --- 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 @@ -2,7 +2,7 @@ // - 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) +description: Static Generator Private Methods can be named "#prototype" (class expression) esid: prod-ClassElement features: [generators, class-static-methods-private, class] flags: [generated] 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 index 186104cf2b77b9f06a62331c90ab3ae0d84b9d86..e5d16b8f6a153258264f0e8a056aba7201723f0b 100644 --- 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 @@ -2,7 +2,7 @@ // - 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) +description: Static Private Methods can be named "#prototype" (class expression) esid: prod-ClassElement features: [class-static-methods-private, class] flags: [generated] diff --git a/test/language/statements/class/syntax/early-errors/grammar-static-private-ctor-meth-valid.js b/test/language/statements/class/syntax/early-errors/grammar-static-private-ctor-meth-valid.js new file mode 100644 index 0000000000000000000000000000000000000000..2ec596b36408a98f6a8770ddada9ffb997329eba --- /dev/null +++ b/test/language/statements/class/syntax/early-errors/grammar-static-private-ctor-meth-valid.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/class-elements/grammar-static-private-ctor-meth-valid.case +// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template +/*--- +description: Static Methods can be named constructor (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 constructor() {} + constructor() {} // stacks with a valid constructor +} diff --git a/test/language/statements/class/syntax/valid/grammar-static-ctor-accessor-meth-valid.js b/test/language/statements/class/syntax/valid/grammar-static-ctor-accessor-meth-valid.js new file mode 100644 index 0000000000000000000000000000000000000000..6ff13c742753381759e8d73e0a5ab8b1afa67c45 --- /dev/null +++ b/test/language/statements/class/syntax/valid/grammar-static-ctor-accessor-meth-valid.js @@ -0,0 +1,30 @@ +// This file was procedurally generated from the following sources: +// - src/class-elements/grammar-static-ctor-accessor-meth-valid.case +// - src/class-elements/syntax/valid/cls-decl-elements-valid-syntax.template +/*--- +description: Static Accessor Methods can be named constructor (class declaration) +esid: prod-ClassElement +features: [class] +flags: [generated] +info: | + Class Definitions / Static Semantics: Early Errors + + ClassElement : MethodDefinition + It is a Syntax Error if PropName of MethodDefinition is not "constructor" and HasDirectSuper of MethodDefinition is true. + It is a Syntax Error if PropName of MethodDefinition is "constructor" and SpecialMethod of MethodDefinition is true. + ClassElement : static MethodDefinition + It is a Syntax Error if HasDirectSuper of MethodDefinition is true. + It is a Syntax Error if PropName of MethodDefinition is "prototype". + +---*/ + + +class C { + static get constructor() {} + static set constructor() {} + constructor() {} // stacks with a valid constructor +} + +assert(C.hasOwnProperty('constructor')); +assert(C.prototype.hasOwnProperty('constructor')); +assert.notSameValue(C.prototype.constructor, C.constructor); diff --git a/test/language/statements/class/syntax/valid/grammar-static-ctor-async-gen-meth-valid.js b/test/language/statements/class/syntax/valid/grammar-static-ctor-async-gen-meth-valid.js new file mode 100644 index 0000000000000000000000000000000000000000..6f7d1c3491b8b39c8e232f7f96bfecb58c94f693 --- /dev/null +++ b/test/language/statements/class/syntax/valid/grammar-static-ctor-async-gen-meth-valid.js @@ -0,0 +1,29 @@ +// This file was procedurally generated from the following sources: +// - src/class-elements/grammar-static-ctor-async-gen-meth-valid.case +// - src/class-elements/syntax/valid/cls-decl-elements-valid-syntax.template +/*--- +description: Static Async Generator Methods can be named constructor (class declaration) +esid: prod-ClassElement +features: [async-iteration, class] +flags: [generated] +info: | + Class Definitions / Static Semantics: Early Errors + + ClassElement : MethodDefinition + It is a Syntax Error if PropName of MethodDefinition is not "constructor" and HasDirectSuper of MethodDefinition is true. + It is a Syntax Error if PropName of MethodDefinition is "constructor" and SpecialMethod of MethodDefinition is true. + ClassElement : static MethodDefinition + It is a Syntax Error if HasDirectSuper of MethodDefinition is true. + It is a Syntax Error if PropName of MethodDefinition is "prototype". + +---*/ + + +class C { + static async * constructor() {} + constructor() {} // stacks with a valid constructor +} + +assert(C.hasOwnProperty('constructor')); +assert(C.prototype.hasOwnProperty('constructor')); +assert.notSameValue(C.prototype.constructor, C.constructor); diff --git a/test/language/statements/class/syntax/valid/grammar-static-ctor-async-meth-valid.js b/test/language/statements/class/syntax/valid/grammar-static-ctor-async-meth-valid.js new file mode 100644 index 0000000000000000000000000000000000000000..142e6fcd44144a6ce7311ef36e45b3a93928d90d --- /dev/null +++ b/test/language/statements/class/syntax/valid/grammar-static-ctor-async-meth-valid.js @@ -0,0 +1,29 @@ +// This file was procedurally generated from the following sources: +// - src/class-elements/grammar-static-ctor-async-meth-valid.case +// - src/class-elements/syntax/valid/cls-decl-elements-valid-syntax.template +/*--- +description: Static Methods can be named constructor (class declaration) +esid: prod-ClassElement +features: [async-functions, class] +flags: [generated] +info: | + Class Definitions / Static Semantics: Early Errors + + ClassElement : MethodDefinition + It is a Syntax Error if PropName of MethodDefinition is not "constructor" and HasDirectSuper of MethodDefinition is true. + It is a Syntax Error if PropName of MethodDefinition is "constructor" and SpecialMethod of MethodDefinition is true. + ClassElement : static MethodDefinition + It is a Syntax Error if HasDirectSuper of MethodDefinition is true. + It is a Syntax Error if PropName of MethodDefinition is "prototype". + +---*/ + + +class C { + static async constructor() {} + constructor() {} // stacks with a valid constructor +} + +assert(C.hasOwnProperty('constructor')); +assert(C.prototype.hasOwnProperty('constructor')); +assert.notSameValue(C.prototype.constructor, C.constructor); diff --git a/test/language/statements/class/syntax/valid/grammar-static-ctor-gen-meth-valid.js b/test/language/statements/class/syntax/valid/grammar-static-ctor-gen-meth-valid.js new file mode 100644 index 0000000000000000000000000000000000000000..29953a5d81783d620dd7c24581f3a5bb4ac1a1f9 --- /dev/null +++ b/test/language/statements/class/syntax/valid/grammar-static-ctor-gen-meth-valid.js @@ -0,0 +1,29 @@ +// This file was procedurally generated from the following sources: +// - src/class-elements/grammar-static-ctor-gen-meth-valid.case +// - src/class-elements/syntax/valid/cls-decl-elements-valid-syntax.template +/*--- +description: Static Generator Methods can be named constructor (class declaration) +esid: prod-ClassElement +features: [generators, class] +flags: [generated] +info: | + Class Definitions / Static Semantics: Early Errors + + ClassElement : MethodDefinition + It is a Syntax Error if PropName of MethodDefinition is not "constructor" and HasDirectSuper of MethodDefinition is true. + It is a Syntax Error if PropName of MethodDefinition is "constructor" and SpecialMethod of MethodDefinition is true. + ClassElement : static MethodDefinition + It is a Syntax Error if HasDirectSuper of MethodDefinition is true. + It is a Syntax Error if PropName of MethodDefinition is "prototype". + +---*/ + + +class C { + static * constructor() {} + constructor() {} // stacks with a valid constructor +} + +assert(C.hasOwnProperty('constructor')); +assert(C.prototype.hasOwnProperty('constructor')); +assert.notSameValue(C.prototype.constructor, C.constructor); diff --git a/test/language/statements/class/syntax/valid/grammar-static-ctor-meth-valid.js b/test/language/statements/class/syntax/valid/grammar-static-ctor-meth-valid.js new file mode 100644 index 0000000000000000000000000000000000000000..45cb903e015b3429c62ca3d0f82820517bfda024 --- /dev/null +++ b/test/language/statements/class/syntax/valid/grammar-static-ctor-meth-valid.js @@ -0,0 +1,29 @@ +// This file was procedurally generated from the following sources: +// - src/class-elements/grammar-static-ctor-meth-valid.case +// - src/class-elements/syntax/valid/cls-decl-elements-valid-syntax.template +/*--- +description: Static Methods can be named constructor (class declaration) +esid: prod-ClassElement +features: [class] +flags: [generated] +info: | + Class Definitions / Static Semantics: Early Errors + + ClassElement : MethodDefinition + It is a Syntax Error if PropName of MethodDefinition is not "constructor" and HasDirectSuper of MethodDefinition is true. + It is a Syntax Error if PropName of MethodDefinition is "constructor" and SpecialMethod of MethodDefinition is true. + ClassElement : static MethodDefinition + It is a Syntax Error if HasDirectSuper of MethodDefinition is true. + It is a Syntax Error if PropName of MethodDefinition is "prototype". + +---*/ + + +class C { + static constructor() {} + constructor() {} // stacks with a valid constructor +} + +assert(C.hasOwnProperty('constructor')); +assert(C.prototype.hasOwnProperty('constructor')); +assert.notSameValue(C.prototype.constructor, C.constructor); 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 index 06b509c97bd46852e98583c033497c77c24933f7..818be05590cf3442c21a25de18bed936e7defd26 100644 --- 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 @@ -2,7 +2,7 @@ // - 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) +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] 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 index 376df2d768bc884e6cee21d273ee7abd6b5d57e2..58811c3ac4cd9bda341bebe2bbec78d002acaba9 100644 --- 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 @@ -2,7 +2,7 @@ // - 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) +description: Static Async Private Methods can be named "#prototype" (class declaration) esid: prod-ClassElement features: [async-functions, class-static-methods-private, class] flags: [generated] 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 index 56bb3105ce24c58585793146e3eb29827a804921..2d5c0ef139fae05d8931d43e408cf200f4258359 100644 --- 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 @@ -2,7 +2,7 @@ // - 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) +description: Static Generator Private Methods can be named "#prototype" (class declaration) esid: prod-ClassElement features: [generators, class-static-methods-private, class] flags: [generated] 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 index 111315c043056314f2168172bbcbcbb548126d23..f53b7cb7274d06cf79748220c3e16409a29c73b9 100644 --- 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 @@ -2,7 +2,7 @@ // - 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) +description: Static Private Methods can be named "#prototype" (class declaration) esid: prod-ClassElement features: [class-static-methods-private, class] flags: [generated]