mirror of https://github.com/tc39/test262.git
Add missing features to class fields tests (#2220)
This commit is contained in:
parent
b41b0577a0
commit
77f6cfb2aa
|
@ -22,7 +22,7 @@ info: |
|
|||
receiver. These semantics allow for a later initializer to refer to
|
||||
a previous private field.
|
||||
template: default
|
||||
features: [class-methods-private]
|
||||
features: [class-methods-private, class-fields-public]
|
||||
---*/
|
||||
|
||||
//- elements
|
||||
|
|
|
@ -22,7 +22,7 @@ info: |
|
|||
receiver. These semantics allow for a later initializer to refer to
|
||||
a previous private field.
|
||||
template: default
|
||||
features: [class-methods-private]
|
||||
features: [class-methods-private, class-fields-public]
|
||||
---*/
|
||||
|
||||
//- elements
|
||||
|
|
|
@ -22,7 +22,7 @@ info: |
|
|||
receiver. These semantics allow for a later initializer to refer to
|
||||
a previous private field.
|
||||
template: default
|
||||
features: [class-methods-private]
|
||||
features: [class-methods-private, class-fields-public]
|
||||
---*/
|
||||
|
||||
//- elements
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
description: Private getters are installed "when super returns" and no earlier (call in field initializer) (field definitions in a class expression)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-methods-private, class]
|
||||
features: [class-methods-private, class-fields-public, class]
|
||||
flags: [generated]
|
||||
info: |
|
||||
SuperCall: super Arguments
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
description: Private methods are installed "when super returns" and no earlier (call in field initializer) (field definitions in a class expression)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-methods-private, class]
|
||||
features: [class-methods-private, class-fields-public, class]
|
||||
flags: [generated]
|
||||
info: |
|
||||
SuperCall: super Arguments
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
description: Private settters are installed "when super returns" and no earlier (call in field initializer) (field definitions in a class expression)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-methods-private, class]
|
||||
features: [class-methods-private, class-fields-public, class]
|
||||
flags: [generated]
|
||||
info: |
|
||||
SuperCall: super Arguments
|
||||
|
|
|
@ -14,7 +14,7 @@ info: |
|
|||
b. Perform ? CreateDataPropertyOrThrow(receiver, fieldName, initValue).
|
||||
10. Return.
|
||||
includes: [compareArray.js]
|
||||
features: [class, class-fields-private]
|
||||
features: [class, class-fields-private, class-fields-public]
|
||||
flags: [onlyStrict]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ info: |
|
|||
3. Let privateName be GetValue(privateNameBinding).
|
||||
4. Assert: privateName is a Private Name.
|
||||
5. Return a value of type Reference whose base value is baseValue, whose referenced name is privateName, whose strict reference flag is true.
|
||||
features: [class-fields-private, class-fields-public, class]
|
||||
features: [class-methods-private, class-fields-public, class]
|
||||
---*/
|
||||
|
||||
class C {
|
||||
|
|
|
@ -35,7 +35,7 @@ info: |
|
|||
3. Let privateName be GetValue(privateNameBinding).
|
||||
4. Assert: privateName is a Private Name.
|
||||
5. Return a value of type Reference whose base value is baseValue, whose referenced name is privateName, whose strict reference flag is true.
|
||||
features: [class-fields-private, class-fields-public, class]
|
||||
features: [class-methods-private, class-fields-public, class]
|
||||
---*/
|
||||
|
||||
class C {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
description: Private getters are installed "when super returns" and no earlier (call in field initializer) (field definitions in a class declaration)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-methods-private, class]
|
||||
features: [class-methods-private, class-fields-public, class]
|
||||
flags: [generated]
|
||||
info: |
|
||||
SuperCall: super Arguments
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
description: Private methods are installed "when super returns" and no earlier (call in field initializer) (field definitions in a class declaration)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-methods-private, class]
|
||||
features: [class-methods-private, class-fields-public, class]
|
||||
flags: [generated]
|
||||
info: |
|
||||
SuperCall: super Arguments
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
description: Private settters are installed "when super returns" and no earlier (call in field initializer) (field definitions in a class declaration)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-methods-private, class]
|
||||
features: [class-methods-private, class-fields-public, class]
|
||||
flags: [generated]
|
||||
info: |
|
||||
SuperCall: super Arguments
|
||||
|
|
Loading…
Reference in New Issue