Merge pull request #199 from bocoup/198

computed-property-names: corrections. Fixes gh-198
This commit is contained in:
Brian Terlson 2015-03-18 16:07:12 -07:00
commit 5994445827
4 changed files with 4 additions and 8 deletions

View File

@ -4,8 +4,7 @@
es6id: 12.2.5
description: >
In a class, computed property names for static
generators cannot be "constructor"
negative: SyntaxError
generators can be named "constructor"
---*/
class C {
static *['constructor']() {}

View File

@ -4,8 +4,7 @@
es6id: 12.2.5
description: >
In a class, computed property names for static
getters cannot be "constructor"
negative: SyntaxError
getters can be named "constructor"
---*/
class C {
static get ['constructor']() {}

View File

@ -4,8 +4,7 @@
es6id: 12.2.5
description: >
In a class, computed property names for static
methods cannot be "constructor"
negative: SyntaxError
methods can be named "constructor"
---*/
class C {
static ['constructor']() {}

View File

@ -4,8 +4,7 @@
es6id: 12.2.5
description: >
In a class, computed property names for static
setters cannot be "constructor"
negative: SyntaxError
setters can be named "constructor"
---*/
class C {
static set ['constructor'](x) {}