mirror of https://github.com/tc39/test262.git
computed-property-names: corrections. Fixes gh-198
This commit is contained in:
parent
d24fd10549
commit
373b356d33
|
@ -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']() {}
|
||||||
|
|
|
@ -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']() {}
|
||||||
|
|
|
@ -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']() {}
|
||||||
|
|
|
@ -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) {}
|
||||||
|
|
Loading…
Reference in New Issue