mirror of https://github.com/tc39/test262.git
Add features for class public fields
This commit is contained in:
parent
358f03f824
commit
3e2d3495c8
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
path: language/statements/class/fields-evaluation-error-
|
||||
name: field definitions in a class declaration
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
esid: sec-runtime-semantics-classdefinitionevaluation
|
||||
---*/
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
path: language/expressions/class/fields-evaluation-error-
|
||||
name: field definitions in a class expression
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
esid: sec-runtime-semantics-classdefinitionevaluation
|
||||
---*/
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
path: language/statements/class/fields-
|
||||
name: field definitions in a class declaration
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
esid: prod-FieldDefinition
|
||||
---*/
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
path: language/expressions/class/fields-
|
||||
name: field definitions in a class expression
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
esid: prod-FieldDefinition
|
||||
---*/
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ info: |
|
|||
1. If the StringValue of Identifier is "arguments", return true.
|
||||
...
|
||||
For all other grammatical productions, recurse on all nonterminals. If any piece returns true, then return true. Otherwise return false.
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
template: initializer-eval-arguments
|
||||
---*/
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ info: |
|
|||
ScriptBody:StatementList
|
||||
|
||||
It is a Syntax Error if StatementList Contains NewTarget.
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
template: initializer-eval-newtarget
|
||||
---*/
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ info: |
|
|||
ScriptBody:StatementList
|
||||
|
||||
It is a Syntax Error if StatementList Contains SuperCall.
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
template: initializer-eval-super-call
|
||||
---*/
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ info: |
|
|||
ScriptBody:StatementList
|
||||
|
||||
It is a Syntax Error if StatementList Contains SuperCall.
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
template: initializer-eval-super-call
|
||||
---*/
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ info: |
|
|||
ScriptBody:StatementList
|
||||
|
||||
It is a Syntax Error if StatementList Contains SuperCall.
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
template: initializer-eval-super-call
|
||||
---*/
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ info: |
|
|||
ScriptBody:StatementList
|
||||
|
||||
It is a Syntax Error if StatementList Contains SuperProperty.
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
template: initializer-eval-super-property
|
||||
---*/
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ info: |
|
|||
ScriptBody:StatementList
|
||||
|
||||
It is a Syntax Error if StatementList Contains SuperProperty.
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
template: initializer-eval-super-property
|
||||
---*/
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ info: |
|
|||
1. If the StringValue of Identifier is "arguments", return true.
|
||||
...
|
||||
For all other grammatical productions, recurse on all nonterminals. If any piece returns true, then return true. Otherwise return false.
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
negative:
|
||||
type: SyntaxError
|
||||
phase: early
|
||||
|
|
|
@ -10,7 +10,7 @@ info: |
|
|||
PropertyNameInitializeropt
|
||||
|
||||
- It is a Syntax Error if Initializer is present and Initializer Contains SuperCall is true.
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
negative:
|
||||
type: SyntaxError
|
||||
phase: early
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
path: language/statements/class/fields-same-line-async-gen-
|
||||
name: field definitions after an async generator in the same line
|
||||
features: [class-fields, async-iteration]
|
||||
features: [class, class-fields-public, async-iteration]
|
||||
flags: [async]
|
||||
esid: prod-FieldDefinition
|
||||
includes: [propertyHelper.js]
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
path: language/statements/class/fields-same-line-async-method-
|
||||
name: field definitions after an async method in the same line
|
||||
features: [class-fields, async-functions]
|
||||
features: [class, class-fields-public, async-functions]
|
||||
flags: [async]
|
||||
esid: prod-FieldDefinition
|
||||
includes: [propertyHelper.js]
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
path: language/statements/class/fields-after-same-line-gen-
|
||||
name: field definitions after a generator in the same line
|
||||
features: [generators, class-fields]
|
||||
features: [generators, class, class-fields-public]
|
||||
esid: prod-FieldDefinition
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
path: language/statements/class/fields-after-same-line-method-
|
||||
name: field definitions after a method in the same line
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
esid: prod-FieldDefinition
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
path: language/statements/class/fields-after-same-line-static-async-gen-
|
||||
name: field definitions after a static async generator in the same line
|
||||
features: [class-fields, async-iteration]
|
||||
features: [class, class-fields-public, async-iteration]
|
||||
flags: [async]
|
||||
esid: prod-FieldDefinition
|
||||
includes: [propertyHelper.js]
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
path: language/statements/class/fields-after-same-line-static-async-method-
|
||||
name: field definitions after a static async method in the same line
|
||||
features: [class-fields, async-functions]
|
||||
features: [class, class-fields-public, async-functions]
|
||||
flags: [async]
|
||||
esid: prod-FieldDefinition
|
||||
includes: [propertyHelper.js]
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
path: language/statements/class/fields-after-same-line-static-gen-
|
||||
name: field definitions after a static generator in the same line
|
||||
features: [generators, class-fields]
|
||||
features: [generators, class, class-fields-public]
|
||||
esid: prod-FieldDefinition
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
path: language/statements/class/fields-after-same-line-static-method-
|
||||
name: field definitions after a static method in the same line
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
esid: prod-FieldDefinition
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
path: language/statements/class/fields-multiple-definitions-
|
||||
name: multiple fields definitions
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
esid: prod-FieldDefinition
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
path: language/statements/class/fields-multiple-stacked-definitions-
|
||||
name: multiple stacked fields definitions through ASI
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
esid: prod-FieldDefinition
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
path: language/statements/class/fields-new-no-sc-line-method-
|
||||
name: field definitions followed by a method in a new line without a semicolon
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
esid: prod-FieldDefinition
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
path: language/statements/class/fields-new-sc-line-gen-
|
||||
name: field definitions followed by a method in a new line with a semicolon
|
||||
features: [class-fields, generators]
|
||||
features: [class, class-fields-public, generators]
|
||||
esid: prod-FieldDefinition
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
path: language/statements/class/fields-new-sc-line-method-
|
||||
name: field definitions followed by a method in a new line with a semicolon
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
esid: prod-FieldDefinition
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
path: language/statements/class/fields-regular-definitions-
|
||||
name: regular fields defintion
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
esid: prod-FieldDefinition
|
||||
---*/
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
path: language/statements/class/fields-same-line-gen-
|
||||
name: field definitions followed by a generator method in the same line
|
||||
features: [class-fields, generators]
|
||||
features: [class, class-fields-public, generators]
|
||||
esid: prod-FieldDefinition
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
path: language/statements/class/fields-same-line-method-
|
||||
name: field definitions followed by a method in the same line
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
esid: prod-FieldDefinition
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
path: language/statements/class/fields-wrapped-in-sc-
|
||||
name: fields definition wrapped in semicolons
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
esid: prod-FieldDefinition
|
||||
---*/
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
path: language/expressions/class/fields-same-line-async-gen-
|
||||
name: field definitions after an async generator in the same line
|
||||
features: [class-fields, async-iteration]
|
||||
features: [class, class-fields-public, async-iteration]
|
||||
flags: [async]
|
||||
esid: prod-FieldDefinition
|
||||
includes: [propertyHelper.js]
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
path: language/expressions/class/fields-same-line-async-method-
|
||||
name: field definitions after an async method in the same line
|
||||
features: [class-fields, async-functions]
|
||||
features: [class, class-fields-public, async-functions]
|
||||
flags: [async]
|
||||
esid: prod-FieldDefinition
|
||||
includes: [propertyHelper.js]
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
path: language/expressions/class/fields-after-same-line-gen-
|
||||
name: field definitions after a generator in the same line
|
||||
features: [generators, class-fields]
|
||||
features: [generators, class, class-fields-public]
|
||||
esid: prod-FieldDefinition
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
path: language/expressions/class/fields-after-same-line-method-
|
||||
name: field definitions after a method in the same line
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
esid: prod-FieldDefinition
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
path: language/expressions/class/fields-after-same-line-static-async-gen-
|
||||
name: field definitions after a static async generator in the same line
|
||||
features: [class-fields, async-iteration]
|
||||
features: [class, class-fields-public, async-iteration]
|
||||
flags: [async]
|
||||
esid: prod-FieldDefinition
|
||||
includes: [propertyHelper.js]
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
path: language/expressions/class/fields-after-same-line-static-async-method-
|
||||
name: field definitions after a static async method in the same line
|
||||
features: [class-fields, async-functions]
|
||||
features: [class, class-fields-public, async-functions]
|
||||
flags: [async]
|
||||
esid: prod-FieldDefinition
|
||||
includes: [propertyHelper.js]
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
path: language/expressions/class/fields-after-same-line-static-gen-
|
||||
name: field definitions after a static generator in the same line
|
||||
features: [generators, class-fields]
|
||||
features: [generators, class, class-fields-public]
|
||||
esid: prod-FieldDefinition
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
path: language/expressions/class/fields-after-same-line-static-method-
|
||||
name: field definitions after a static method in the same line
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
esid: prod-FieldDefinition
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
path: language/expressions/class/fields-multiple-definitions-
|
||||
name: multiple fields definitions
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
esid: prod-FieldDefinition
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
path: language/expressions/class/fields-multiple-stacked-definitions-
|
||||
name: multiple stacked fields definitions through ASI
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
esid: prod-FieldDefinition
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
path: language/expressions/class/fields-new-no-sc-line-method-
|
||||
name: field definitions followed by a method in a new line without a semicolon
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
esid: prod-FieldDefinition
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
path: language/expressions/class/fields-new-sc-line-gen-
|
||||
name: field definitions followed by a method in a new line with a semicolon
|
||||
features: [class-fields, generators]
|
||||
features: [class, class-fields-public, generators]
|
||||
esid: prod-FieldDefinition
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
path: language/expressions/class/fields-new-sc-line-method-
|
||||
name: field definitions followed by a method in a new line with a semicolon
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
esid: prod-FieldDefinition
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
path: language/expressions/class/fields-regular-definitions-
|
||||
name: regular fields defintion
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
esid: prod-FieldDefinition
|
||||
---*/
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
path: language/expressions/class/fields-same-line-gen-
|
||||
name: field definitions followed by a generator method in the same line
|
||||
features: [class-fields, generators]
|
||||
features: [class, class-fields-public, generators]
|
||||
esid: prod-FieldDefinition
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
path: language/expressions/class/fields-same-line-method-
|
||||
name: field definitions followed by a method in the same line
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
esid: prod-FieldDefinition
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
path: language/expressions/class/fields-wrapped-in-sc-
|
||||
name: fields definition wrapped in semicolons
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
esid: prod-FieldDefinition
|
||||
---*/
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ info: |
|
|||
|
||||
ClassElement : FieldDefinition;
|
||||
It is a Syntax Error if PropName of FieldDefinition is "constructor".
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
template: propname-error
|
||||
---*/
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ info: |
|
|||
|
||||
ClassElement : staticFieldDefinition;
|
||||
It is a Syntax Error if PropName of FieldDefinition is "prototype" or "constructor".
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
template: propname-error-static
|
||||
---*/
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ info: |
|
|||
|
||||
ClassElement : staticFieldDefinition;
|
||||
It is a Syntax Error if PropName of FieldDefinition is "prototype" or "constructor".
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
template: propname-error-static
|
||||
---*/
|
||||
|
||||
|
|
Loading…
Reference in New Issue