mirror of https://github.com/tc39/test262.git
Class Fields: minor updates to existing templates to improve output source
This commit is contained in:
parent
ba97c2a5ce
commit
0298174c06
|
@ -16,6 +16,7 @@ info: |
|
|||
ScriptBody : StatementList
|
||||
|
||||
It is a Syntax Error if StatementList Contains NewTarget.
|
||||
|
||||
features: [class, new.target]
|
||||
template: initializer-eval-newtarget
|
||||
---*/
|
||||
|
|
|
@ -16,13 +16,13 @@ info: |
|
|||
ScriptBody : StatementList
|
||||
|
||||
It is a Syntax Error if StatementList Contains SuperCall.
|
||||
|
||||
features: [class, class-fields-public]
|
||||
template: initializer-eval-super-call
|
||||
---*/
|
||||
|
||||
//- initializer
|
||||
super()['x']
|
||||
|
||||
//- earlyerror
|
||||
SyntaxError
|
||||
//- executionerror
|
||||
|
|
|
@ -16,6 +16,7 @@ info: |
|
|||
ScriptBody : StatementList
|
||||
|
||||
It is a Syntax Error if StatementList Contains SuperCall.
|
||||
|
||||
features: [class, class-fields-public]
|
||||
template: initializer-eval-super-call
|
||||
---*/
|
||||
|
|
|
@ -16,6 +16,7 @@ info: |
|
|||
ScriptBody : StatementList
|
||||
|
||||
It is a Syntax Error if StatementList Contains SuperProperty.
|
||||
|
||||
features: [class, class-fields-public]
|
||||
template: initializer-eval-super-property
|
||||
---*/
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: static literal private names
|
||||
desc: private names
|
||||
info: |
|
||||
ClassElement :
|
||||
...
|
||||
|
@ -16,6 +16,7 @@ info: |
|
|||
|
||||
PrivateName :
|
||||
# IdentifierName
|
||||
|
||||
template: productions
|
||||
features: [class-fields-private]
|
||||
---*/
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: literal private names
|
||||
desc: static private fields
|
||||
info: |
|
||||
ClassElement :
|
||||
...
|
||||
|
@ -16,7 +16,9 @@ info: |
|
|||
|
||||
PrivateName :
|
||||
# IdentifierName
|
||||
template: default
|
||||
|
||||
template: productions
|
||||
features: [class-static-fields-private]
|
||||
---*/
|
||||
|
||||
//- fields
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: literal private names
|
||||
desc: static private methods
|
||||
info: |
|
||||
ClassElement :
|
||||
...
|
||||
|
@ -17,7 +17,7 @@ info: |
|
|||
PrivateName :
|
||||
# IdentifierName
|
||||
|
||||
template: default
|
||||
template: productions
|
||||
features: [class-static-methods-private]
|
||||
---*/
|
||||
|
||||
|
@ -38,7 +38,6 @@ static #xVal; static #yVal
|
|||
static y() {
|
||||
return this.#y(43);
|
||||
}
|
||||
|
||||
//- assertions
|
||||
|
||||
// Test the private methods do not appear as properties before set to value
|
||||
|
|
Loading…
Reference in New Issue