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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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