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

This commit is contained in:
Rick Waldron 2015-03-18 18:50:05 -04:00
parent d24fd10549
commit 373b356d33
4 changed files with 4 additions and 8 deletions

View File

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

View File

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

View File

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

View File

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