diff --git a/src/class-elements/grammar-special-meth-ctor-set.case b/src/class-elements/grammar-special-meth-ctor-set.case index d7855ad3cea86792199f346a3b2be021bc6a5712..b65654212ba87743671422181b8366c3ec8d533b 100644 --- a/src/class-elements/grammar-special-meth-ctor-set.case +++ b/src/class-elements/grammar-special-meth-ctor-set.case @@ -12,4 +12,4 @@ template: syntax/invalid ---*/ //- elements -set constructor() {} +set constructor(_) {} diff --git a/src/class-elements/grammar-static-ctor-accessor-meth-valid.case b/src/class-elements/grammar-static-ctor-accessor-meth-valid.case index d161900eb12bf7fc1aa3a9166c40ca07934e49bc..4e0cba9bc772e2961d53359f89087066f71553c4 100644 --- a/src/class-elements/grammar-static-ctor-accessor-meth-valid.case +++ b/src/class-elements/grammar-static-ctor-accessor-meth-valid.case @@ -17,7 +17,7 @@ template: syntax/valid //- elements static get constructor() {} -static set constructor() {} +static set constructor(_) {} constructor() {} // stacks with a valid constructor //- teardown assert(C.hasOwnProperty('constructor')); diff --git a/src/class-elements/grammar-static-private-ctor-meth-valid.case b/src/class-elements/grammar-static-private-ctor-meth-valid.case deleted file mode 100644 index f4db2766d0cc68fab90501fb857e31c93ea46825..0000000000000000000000000000000000000000 --- a/src/class-elements/grammar-static-private-ctor-meth-valid.case +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright (C) 2018 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: Static Methods can be named constructor -info: | - Class Definitions / Static Semantics: Early Errors - - ClassElement : static MethodDefinition - It is a Syntax Error if PropName of MethodDefinition is "prototype" -template: syntax/invalid ----*/ - -//- elements -static constructor() {} -constructor() {} // stacks with a valid constructor diff --git a/src/class-elements/grammar-static-set-meth-prototype.case b/src/class-elements/grammar-static-set-meth-prototype.case index 6c814a11423543fcd04a312923e32743f0e7abbb..6403e4f0e41b0b26d1528f81bc8eff42494b13d4 100644 --- a/src/class-elements/grammar-static-set-meth-prototype.case +++ b/src/class-elements/grammar-static-set-meth-prototype.case @@ -12,4 +12,4 @@ template: syntax/invalid ---*/ //- elements -static set prototype() {} +static set prototype(_) {}