Merge pull request #202 from bocoup/198

computed-property-names: follow up corrections. Fixes gh-198
This commit is contained in:
Brian Terlson 2015-03-19 13:38:59 -07:00
commit 3702ae1031
6 changed files with 2 additions and 6 deletions

View File

@ -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']() {}
}

View File

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

View File

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