diff --git a/test/language/computed-property-names/class/method/constructor-cannot-be-generator.js b/test/language/computed-property-names/class/method/constructor-can-be-generator.js similarity index 63% rename from test/language/computed-property-names/class/method/constructor-cannot-be-generator.js rename to test/language/computed-property-names/class/method/constructor-can-be-generator.js index 83a8f4ed04f1b57ca05a88ba97aaa8936c762082..e2bcdfe4c4dea4b9d81717abc1411cd2b4aec2b0 100644 --- a/test/language/computed-property-names/class/method/constructor-cannot-be-generator.js +++ b/test/language/computed-property-names/class/method/constructor-can-be-generator.js @@ -3,10 +3,8 @@ /*--- es6id: 14.5.3 description: > - computed property generator method names cannot be "constructor" -negative: SyntaxError + computed property generator method names can be called "constructor" ---*/ class C4 { - *['constructor']() { - } + *['constructor']() {} } diff --git a/test/language/computed-property-names/class/method/constructor-cannot-be-getter.js b/test/language/computed-property-names/class/method/constructor-can-be-getter.js similarity index 92% rename from test/language/computed-property-names/class/method/constructor-cannot-be-getter.js rename to test/language/computed-property-names/class/method/constructor-can-be-getter.js index 318b58b824ab199f76f7c839d4d96e57d208856c..8bdb071e72fc0c1a6d8ae323dab4015d99c4642e 100644 --- a/test/language/computed-property-names/class/method/constructor-cannot-be-getter.js +++ b/test/language/computed-property-names/class/method/constructor-can-be-getter.js @@ -4,7 +4,6 @@ es6id: 14.5.3 description: > computed property getter names can be called "constructor" -negative: SyntaxError ---*/ class C4 { get ['constructor']() {} diff --git a/test/language/computed-property-names/class/method/constructor-cannot-be-setter.js b/test/language/computed-property-names/class/method/constructor-can-be-setter.js similarity index 93% rename from test/language/computed-property-names/class/method/constructor-cannot-be-setter.js rename to test/language/computed-property-names/class/method/constructor-can-be-setter.js index 0ae0295e643e603d589a5803b7bbd63de5c58797..e273f87acb4f796d809553cda58164f33cd4cbb0 100644 --- a/test/language/computed-property-names/class/method/constructor-cannot-be-setter.js +++ b/test/language/computed-property-names/class/method/constructor-can-be-setter.js @@ -4,7 +4,6 @@ es6id: 14.5.3 description: > computed property setter names can be called "constructor" -negative: SyntaxError ---*/ class C4 { set ['constructor'](_) {} diff --git a/test/language/computed-property-names/class/method/constructor-no-duplicate-1.js b/test/language/computed-property-names/class/method/constructor-duplicate-1.js similarity index 100% rename from test/language/computed-property-names/class/method/constructor-no-duplicate-1.js rename to test/language/computed-property-names/class/method/constructor-duplicate-1.js diff --git a/test/language/computed-property-names/class/method/constructor-no-duplicate-2.js b/test/language/computed-property-names/class/method/constructor-duplicate-2.js similarity index 100% rename from test/language/computed-property-names/class/method/constructor-no-duplicate-2.js rename to test/language/computed-property-names/class/method/constructor-duplicate-2.js diff --git a/test/language/computed-property-names/class/method/constructor-no-duplicate-3.js b/test/language/computed-property-names/class/method/constructor-duplicate-3.js similarity index 100% rename from test/language/computed-property-names/class/method/constructor-no-duplicate-3.js rename to test/language/computed-property-names/class/method/constructor-duplicate-3.js