mirror of
https://github.com/tc39/test262.git
synced 2025-07-28 08:24:23 +02:00
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
|
ScriptBody : StatementList
|
||||||
|
|
||||||
It is a Syntax Error if StatementList Contains NewTarget.
|
It is a Syntax Error if StatementList Contains NewTarget.
|
||||||
|
|
||||||
features: [class, new.target]
|
features: [class, new.target]
|
||||||
template: initializer-eval-newtarget
|
template: initializer-eval-newtarget
|
||||||
---*/
|
---*/
|
||||||
|
@ -16,13 +16,13 @@ info: |
|
|||||||
ScriptBody : StatementList
|
ScriptBody : StatementList
|
||||||
|
|
||||||
It is a Syntax Error if StatementList Contains SuperCall.
|
It is a Syntax Error if StatementList Contains SuperCall.
|
||||||
|
|
||||||
features: [class, class-fields-public]
|
features: [class, class-fields-public]
|
||||||
template: initializer-eval-super-call
|
template: initializer-eval-super-call
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- initializer
|
//- initializer
|
||||||
super()['x']
|
super()['x']
|
||||||
|
|
||||||
//- earlyerror
|
//- earlyerror
|
||||||
SyntaxError
|
SyntaxError
|
||||||
//- executionerror
|
//- executionerror
|
||||||
|
@ -16,6 +16,7 @@ info: |
|
|||||||
ScriptBody : StatementList
|
ScriptBody : StatementList
|
||||||
|
|
||||||
It is a Syntax Error if StatementList Contains SuperCall.
|
It is a Syntax Error if StatementList Contains SuperCall.
|
||||||
|
|
||||||
features: [class, class-fields-public]
|
features: [class, class-fields-public]
|
||||||
template: initializer-eval-super-call
|
template: initializer-eval-super-call
|
||||||
---*/
|
---*/
|
||||||
|
@ -16,6 +16,7 @@ info: |
|
|||||||
ScriptBody : StatementList
|
ScriptBody : StatementList
|
||||||
|
|
||||||
It is a Syntax Error if StatementList Contains SuperProperty.
|
It is a Syntax Error if StatementList Contains SuperProperty.
|
||||||
|
|
||||||
features: [class, class-fields-public]
|
features: [class, class-fields-public]
|
||||||
template: initializer-eval-super-property
|
template: initializer-eval-super-property
|
||||||
---*/
|
---*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
desc: static literal private names
|
desc: private names
|
||||||
info: |
|
info: |
|
||||||
ClassElement :
|
ClassElement :
|
||||||
...
|
...
|
||||||
@ -16,6 +16,7 @@ info: |
|
|||||||
|
|
||||||
PrivateName :
|
PrivateName :
|
||||||
# IdentifierName
|
# IdentifierName
|
||||||
|
|
||||||
template: productions
|
template: productions
|
||||||
features: [class-fields-private]
|
features: [class-fields-private]
|
||||||
---*/
|
---*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
desc: literal private names
|
desc: static private fields
|
||||||
info: |
|
info: |
|
||||||
ClassElement :
|
ClassElement :
|
||||||
...
|
...
|
||||||
@ -16,7 +16,9 @@ info: |
|
|||||||
|
|
||||||
PrivateName :
|
PrivateName :
|
||||||
# IdentifierName
|
# IdentifierName
|
||||||
template: default
|
|
||||||
|
template: productions
|
||||||
|
features: [class-static-fields-private]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- fields
|
//- fields
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
desc: literal private names
|
desc: static private methods
|
||||||
info: |
|
info: |
|
||||||
ClassElement :
|
ClassElement :
|
||||||
...
|
...
|
||||||
@ -17,7 +17,7 @@ info: |
|
|||||||
PrivateName :
|
PrivateName :
|
||||||
# IdentifierName
|
# IdentifierName
|
||||||
|
|
||||||
template: default
|
template: productions
|
||||||
features: [class-static-methods-private]
|
features: [class-static-methods-private]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
@ -38,7 +38,6 @@ static #xVal; static #yVal
|
|||||||
static y() {
|
static y() {
|
||||||
return this.#y(43);
|
return this.#y(43);
|
||||||
}
|
}
|
||||||
|
|
||||||
//- assertions
|
//- assertions
|
||||||
|
|
||||||
// Test the private methods do not appear as properties before set to value
|
// Test the private methods do not appear as properties before set to value
|
||||||
|
Loading…
x
Reference in New Issue
Block a user