mirror of https://github.com/tc39/test262.git
Merge pull request #199 from bocoup/198
computed-property-names: corrections. Fixes gh-198
This commit is contained in:
commit
5994445827
|
@ -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']() {}
|
||||
|
|
|
@ -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']() {}
|
||||
|
|
|
@ -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']() {}
|
||||
|
|
|
@ -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) {}
|
||||
|
|
Loading…
Reference in New Issue