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 @@ ...@@ -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 @@ ...@@ -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 @@ ...@@ -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 @@ ...@@ -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) {}
......
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