computed-property-names: follow up corrections. Fixes gh-198

This commit is contained in:
Rick Waldron 2015-03-19 14:54:24 -04:00
parent 2df6c4f219
commit 3ac4b240bb
6 changed files with 2 additions and 6 deletions

View File

@ -3,10 +3,8 @@
/*--- /*---
es6id: 14.5.3 es6id: 14.5.3
description: > description: >
computed property generator method names cannot be "constructor" computed property generator method names can be called "constructor"
negative: SyntaxError
---*/ ---*/
class C4 { class C4 {
*['constructor']() { *['constructor']() {}
}
} }

View File

@ -4,7 +4,6 @@
es6id: 14.5.3 es6id: 14.5.3
description: > description: >
computed property getter names can be called "constructor" computed property getter names can be called "constructor"
negative: SyntaxError
---*/ ---*/
class C4 { class C4 {
get ['constructor']() {} get ['constructor']() {}

View File

@ -4,7 +4,6 @@
es6id: 14.5.3 es6id: 14.5.3
description: > description: >
computed property setter names can be called "constructor" computed property setter names can be called "constructor"
negative: SyntaxError
---*/ ---*/
class C4 { class C4 {
set ['constructor'](_) {} set ['constructor'](_) {}