Class Fields: minor updates to existing templates to improve output source

This commit is contained in:
Rick Waldron 2018-08-01 11:22:55 -04:00 committed by Leo Balter
parent ba97c2a5ce
commit 0298174c06
42 changed files with 93 additions and 88 deletions

View File

@ -16,6 +16,7 @@ info: |
ScriptBody : StatementList
It is a Syntax Error if StatementList Contains NewTarget.
features: [class, new.target]
template: initializer-eval-newtarget
---*/

View File

@ -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

View File

@ -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
---*/

View File

@ -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
---*/

View File

@ -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]
---*/

View File

@ -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

View File

@ -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