mirror of https://github.com/tc39/test262.git
Merge pull request #202 from bocoup/198
computed-property-names: follow up corrections. Fixes gh-198
This commit is contained in:
commit
3702ae1031
|
@ -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