Skip to content
Snippets Groups Projects
Commit 59944458 authored by Brian Terlson's avatar Brian Terlson
Browse files

Merge pull request #199 from bocoup/198

computed-property-names: corrections. Fixes gh-198
parents 2e181362 373b356d
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