Skip to content
Snippets Groups Projects
Commit 373b356d authored by Rick Waldron's avatar Rick Waldron
Browse files

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

parent d24fd105
No related branches found
No related tags found
No related merge requests found
......@@ -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) {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment