mirror of https://github.com/tc39/test262.git
Update class fields tags in non-generated test files
This commit is contained in:
parent
d142f75468
commit
a488271931
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
description: Syntax error if the same private field defined twice
|
||||
esid: sec-class-definitions-static-semantics-early-errors
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-private]
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
description: Private class fields early error with StringValue "#constructor"
|
||||
esid: sec-class-definitions-static-semantics-early-errors
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-private]
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
|
|
|
@ -7,7 +7,7 @@ info: |
|
|||
Static Semantics: Early Errors
|
||||
Module : ModuleBody
|
||||
It is a Syntax Error if AllPrivateNamesValid of ModuleBody with an empty List as an argument is false.
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-private]
|
||||
flags: [module]
|
||||
negative:
|
||||
phase: early
|
||||
|
|
|
@ -7,7 +7,7 @@ info: |
|
|||
Static Semantics: Early Errors
|
||||
Module : ModuleBody
|
||||
It is a Syntax Error if AllPrivateNamesValid of ModuleBody with an empty List as an argument is false.
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-private]
|
||||
flags: [module]
|
||||
negative:
|
||||
phase: early
|
||||
|
|
|
@ -7,7 +7,7 @@ info: |
|
|||
Static Semantics: Early Errors
|
||||
Module : ModuleBody
|
||||
It is a Syntax Error if AllPrivateNamesValid of ModuleBody with an empty List as an argument is false.
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-private, class-fields-public]
|
||||
flags: [module]
|
||||
negative:
|
||||
phase: early
|
||||
|
|
|
@ -8,7 +8,7 @@ info: |
|
|||
Static Semantics: Early Errors
|
||||
Module : ModuleBody
|
||||
It is a Syntax Error if AllPrivateNamesValid of ModuleBody with an empty List as an argument is false.
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-private]
|
||||
flags: [module]
|
||||
negative:
|
||||
phase: early
|
||||
|
|
|
@ -7,7 +7,7 @@ info: |
|
|||
Static Semantics: Early Errors
|
||||
Module : ModuleBody
|
||||
It is a Syntax Error if AllPrivateNamesValid of ModuleBody with an empty List as an argument is false.
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-private]
|
||||
flags: [module]
|
||||
negative:
|
||||
phase: early
|
||||
|
|
|
@ -7,7 +7,7 @@ info: |
|
|||
Static Semantics: Early Errors
|
||||
Module : ModuleBody
|
||||
It is a Syntax Error if AllPrivateNamesValid of ModuleBody with an empty List as an argument is false.
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-private]
|
||||
flags: [module]
|
||||
negative:
|
||||
phase: early
|
||||
|
|
|
@ -7,7 +7,7 @@ info: |
|
|||
Static Semantics: Early Errors
|
||||
Module : ModuleBody
|
||||
It is a Syntax Error if AllPrivateNamesValid of ModuleBody with an empty List as an argument is false.
|
||||
features: [class-fields]
|
||||
features: [class-fields-private]
|
||||
flags: [module]
|
||||
negative:
|
||||
phase: early
|
||||
|
|
|
@ -7,7 +7,7 @@ info: |
|
|||
Static Semantics: Early Errors
|
||||
Module : ModuleBody
|
||||
It is a Syntax Error if AllPrivateNamesValid of ModuleBody with an empty List as an argument is false.
|
||||
features: [class-fields]
|
||||
features: [class-fields-private]
|
||||
flags: [module]
|
||||
negative:
|
||||
phase: early
|
||||
|
|
|
@ -25,7 +25,7 @@ info: |
|
|||
|
||||
For all other grammatical productions, recurse on subexpressions/substatements, passing in the names of the caller. If all pieces return true, then return true. If any returns false, return false.
|
||||
flags: [module]
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-private]
|
||||
---*/
|
||||
|
||||
class outer {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
description: Syntax error if the same private field defined twice
|
||||
esid: sec-class-definitions-static-semantics-early-errors
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-private]
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
description: Private class fields early error with StringValue "#constructor"
|
||||
esid: sec-class-definitions-static-semantics-early-errors
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-private]
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
|
|
|
@ -33,7 +33,7 @@ info: |
|
|||
3. Let entry be PrivateFieldFind(P, O).
|
||||
4. If entry is not empty, throw a TypeError exception.
|
||||
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-private]
|
||||
---*/
|
||||
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ info: |
|
|||
4. If entry is empty, throw a TypeError exception.
|
||||
5. Return entry.[[PrivateFieldValue]].
|
||||
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-private]
|
||||
---*/
|
||||
|
||||
class Outer {
|
||||
|
|
|
@ -22,7 +22,7 @@ info: |
|
|||
4. If entry is empty, throw a TypeError exception.
|
||||
5. Return entry.[[PrivateFieldValue]].
|
||||
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-private]
|
||||
---*/
|
||||
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ info: |
|
|||
4. If entry is empty, throw a TypeError exception.
|
||||
5. Return entry.[[PrivateFieldValue]].
|
||||
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-private]
|
||||
---*/
|
||||
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ info: |
|
|||
4. If entry is empty, throw a TypeError exception.
|
||||
5. Return entry.[[PrivateFieldValue]].
|
||||
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-private]
|
||||
---*/
|
||||
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ info: |
|
|||
4. If entry is empty, throw a TypeError exception.
|
||||
5. Return entry.[[PrivateFieldValue]].
|
||||
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-private]
|
||||
---*/
|
||||
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ info: |
|
|||
a. If entry.[[PrivateName]] is P, return entry.
|
||||
4. Return empty.
|
||||
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-private, class-fields-public]
|
||||
---*/
|
||||
|
||||
class C {
|
||||
|
|
|
@ -28,7 +28,7 @@ info: |
|
|||
a. If entry.[[PrivateName]] is P, return entry.
|
||||
4. Return empty.
|
||||
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-private]
|
||||
---*/
|
||||
|
||||
class Outer {
|
||||
|
|
|
@ -29,7 +29,7 @@ info: |
|
|||
a. If entry.[[PrivateName]] is P, return entry.
|
||||
4. Return empty.
|
||||
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-private]
|
||||
---*/
|
||||
|
||||
class Outer {
|
||||
|
|
|
@ -28,7 +28,7 @@ info: |
|
|||
a. If entry.[[PrivateName]] is P, return entry.
|
||||
4. Return empty.
|
||||
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-private]
|
||||
---*/
|
||||
|
||||
function classfactory() {
|
||||
|
|
|
@ -28,7 +28,7 @@ info: |
|
|||
a. If entry.[[PrivateName]] is P, return entry.
|
||||
4. Return empty.
|
||||
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-private]
|
||||
---*/
|
||||
|
||||
class Outer {
|
||||
|
|
|
@ -28,7 +28,7 @@ info: |
|
|||
a. If entry.[[PrivateName]] is P, return entry.
|
||||
4. Return empty.
|
||||
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-private, class-fields-public]
|
||||
---*/
|
||||
|
||||
class C {
|
||||
|
|
|
@ -28,7 +28,7 @@ info: |
|
|||
a. If entry.[[PrivateName]] is P, return entry.
|
||||
4. Return empty.
|
||||
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-private]
|
||||
---*/
|
||||
|
||||
class Outer {
|
||||
|
|
|
@ -29,7 +29,7 @@ info: |
|
|||
a. If entry.[[PrivateName]] is P, return entry.
|
||||
4. Return empty.
|
||||
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-private]
|
||||
---*/
|
||||
|
||||
class Outer {
|
||||
|
|
|
@ -28,7 +28,7 @@ info: |
|
|||
a. If entry.[[PrivateName]] is P, return entry.
|
||||
4. Return empty.
|
||||
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-private]
|
||||
---*/
|
||||
|
||||
function classfactory() {
|
||||
|
|
|
@ -28,7 +28,7 @@ info: |
|
|||
a. If entry.[[PrivateName]] is P, return entry.
|
||||
4. Return empty.
|
||||
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-private]
|
||||
---*/
|
||||
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ info: |
|
|||
1. Let names be an empty List.
|
||||
...
|
||||
3. If AllPrivateNamesValid of ScriptBody with the argument names is false, throw a SyntaxError exception.
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-private]
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
|
|
|
@ -9,7 +9,7 @@ info: |
|
|||
1. Let names be an empty List.
|
||||
...
|
||||
3. If AllPrivateNamesValid of ScriptBody with the argument names is false, throw a SyntaxError exception.
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-private]
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
|
|
|
@ -9,7 +9,7 @@ info: |
|
|||
1. Let names be an empty List.
|
||||
...
|
||||
3. If AllPrivateNamesValid of ScriptBody with the argument names is false, throw a SyntaxError exception.
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-private, class-fields-public]
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
|
|
|
@ -9,7 +9,7 @@ info: |
|
|||
1. Let names be an empty List.
|
||||
...
|
||||
3. If AllPrivateNamesValid of ScriptBody with the argument names is false, throw a SyntaxError exception.
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-private]
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
|
|
|
@ -9,7 +9,7 @@ info: |
|
|||
1. Let names be an empty List.
|
||||
...
|
||||
3. If AllPrivateNamesValid of ScriptBody with the argument names is false, throw a SyntaxError exception.
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-private]
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
|
|
|
@ -9,7 +9,7 @@ info: |
|
|||
1. Let names be an empty List.
|
||||
...
|
||||
3. If AllPrivateNamesValid of ScriptBody with the argument names is false, throw a SyntaxError exception.
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-private]
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
|
|
|
@ -9,7 +9,7 @@ info: |
|
|||
1. Let names be an empty List.
|
||||
...
|
||||
3. If AllPrivateNamesValid of ScriptBody with the argument names is false, throw a SyntaxError exception.
|
||||
features: [class-fields]
|
||||
features: [class-fields-private]
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
|
|
|
@ -9,7 +9,7 @@ info: |
|
|||
1. Let names be an empty List.
|
||||
...
|
||||
3. If AllPrivateNamesValid of ScriptBody with the argument names is false, throw a SyntaxError exception.
|
||||
features: [class-fields]
|
||||
features: [class-fields-private]
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
|
|
|
@ -14,7 +14,7 @@ info: |
|
|||
1. If names does not contain N, append N to names.
|
||||
ii. Let env be env's outer environment reference.
|
||||
3. If AllPrivateNamesValid of ScriptBody with the argument names is false, throw a SyntaxError exception.
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-private]
|
||||
---*/
|
||||
|
||||
var executed = false;
|
||||
|
|
|
@ -14,7 +14,7 @@ info: |
|
|||
1. If names does not contain N, append N to names.
|
||||
ii. Let env be env's outer environment reference.
|
||||
3. If AllPrivateNamesValid of ScriptBody with the argument names is false, throw a SyntaxError exception.
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-private]
|
||||
---*/
|
||||
|
||||
var executed = false;
|
||||
|
|
|
@ -14,7 +14,7 @@ info: |
|
|||
1. If names does not contain N, append N to names.
|
||||
ii. Let env be env's outer environment reference.
|
||||
3. If AllPrivateNamesValid of ScriptBody with the argument names is false, throw a SyntaxError exception.
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-private, class-fields-public]
|
||||
---*/
|
||||
|
||||
var executed = false;
|
||||
|
|
|
@ -14,7 +14,7 @@ info: |
|
|||
1. If names does not contain N, append N to names.
|
||||
ii. Let env be env's outer environment reference.
|
||||
3. If AllPrivateNamesValid of ScriptBody with the argument names is false, throw a SyntaxError exception.
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-private]
|
||||
---*/
|
||||
|
||||
var executed = false;
|
||||
|
|
|
@ -14,7 +14,7 @@ info: |
|
|||
1. If names does not contain N, append N to names.
|
||||
ii. Let env be env's outer environment reference.
|
||||
3. If AllPrivateNamesValid of ScriptBody with the argument names is false, throw a SyntaxError exception.
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-private]
|
||||
---*/
|
||||
|
||||
var executed = false;
|
||||
|
|
|
@ -14,7 +14,7 @@ info: |
|
|||
1. If names does not contain N, append N to names.
|
||||
ii. Let env be env's outer environment reference.
|
||||
3. If AllPrivateNamesValid of ScriptBody with the argument names is false, throw a SyntaxError exception.
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-private]
|
||||
---*/
|
||||
|
||||
var executed = false;
|
||||
|
|
|
@ -8,7 +8,7 @@ info: |
|
|||
1. Let names be an empty List.
|
||||
...
|
||||
3. If AllPrivateNamesValid of ScriptBody with the argument names is false, throw a SyntaxError exception.
|
||||
features: [class-fields]
|
||||
features: [class-fields-private]
|
||||
---*/
|
||||
|
||||
var executed = false;
|
||||
|
|
|
@ -8,7 +8,7 @@ info: |
|
|||
1. Let names be an empty List.
|
||||
...
|
||||
3. If AllPrivateNamesValid of ScriptBody with the argument names is false, throw a SyntaxError exception.
|
||||
features: [class-fields]
|
||||
features: [class-fields-private]
|
||||
---*/
|
||||
|
||||
var executed = false;
|
||||
|
|
|
@ -27,7 +27,7 @@ info: |
|
|||
|
||||
For all other grammatical productions, recurse on subexpressions/substatements, passing in the names of the caller. If all pieces return true, then return true. If any returns false, return false.
|
||||
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-private]
|
||||
---*/
|
||||
|
||||
class outer {
|
||||
|
|
Loading…
Reference in New Issue