mirror of https://github.com/tc39/test262.git
computed-property-names: follow up corrections. Fixes gh-198
This commit is contained in:
parent
2df6c4f219
commit
3ac4b240bb
|
@ -3,10 +3,8 @@
|
|||
/*---
|
||||
es6id: 14.5.3
|
||||
description: >
|
||||
computed property generator method names cannot be "constructor"
|
||||
negative: SyntaxError
|
||||
computed property generator method names can be called "constructor"
|
||||
---*/
|
||||
class C4 {
|
||||
*['constructor']() {
|
||||
}
|
||||
*['constructor']() {}
|
||||
}
|
|
@ -4,7 +4,6 @@
|
|||
es6id: 14.5.3
|
||||
description: >
|
||||
computed property getter names can be called "constructor"
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
class C4 {
|
||||
get ['constructor']() {}
|
|
@ -4,7 +4,6 @@
|
|||
es6id: 14.5.3
|
||||
description: >
|
||||
computed property setter names can be called "constructor"
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
class C4 {
|
||||
set ['constructor'](_) {}
|
Loading…
Reference in New Issue