mirror of https://github.com/tc39/test262.git
Update class public fields tags in non-generated test files
This commit is contained in:
parent
a488271931
commit
6f8c89dfd1
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
description: ASI test in field declarations -- computed name interpreted as property
|
||||
esid: sec-automatic-semicolon-insertion
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
---*/
|
||||
|
||||
var obj = {}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
description: ASI test in field declarations -- computed name interpreted as string index
|
||||
esid: sec-automatic-semicolon-insertion
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
---*/
|
||||
|
||||
var C = class {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
description: ASI test in field declarations -- error when computed name interpreted as index
|
||||
esid: sec-automatic-semicolon-insertion
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
description: ASI test in field declarations -- error when generator interpreted as multiplication
|
||||
esid: sec-automatic-semicolon-insertion
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public, generators]
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
description: ASI test in field declarations -- field with PropertyName "in" interpreted as index
|
||||
esid: sec-automatic-semicolon-insertion
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
---*/
|
||||
|
||||
var x = 0;
|
||||
|
|
|
@ -6,7 +6,7 @@ description: >
|
|||
static class fields forbid PropName 'constructor' (no early error for
|
||||
ComputedPropertyName)
|
||||
esid: sec-class-definitions-static-semantics-early-errors
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
info: |
|
||||
Static Semantics: PropName
|
||||
...
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
description: >
|
||||
Cannot redefine a non-configurable, non-writable "prototype" property
|
||||
esid: runtime-semantics-class-definition-evaluation
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
info: |
|
||||
// This test file also tests the ComputedPropertyName won't trigger the
|
||||
// following early error:
|
||||
|
|
|
@ -28,7 +28,7 @@ info: |
|
|||
1. Let fieldName be the result of evaluating ClassElementName.
|
||||
2. ReturnIfAbrupt(fieldName).
|
||||
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
---*/
|
||||
|
||||
function f() {
|
||||
|
|
|
@ -30,7 +30,7 @@ info: |
|
|||
5. If initializer is not empty, then
|
||||
a.Let initValue be ? Call(initializer, receiver).
|
||||
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
---*/
|
||||
|
||||
function f() {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
description: ASI test in field declarations -- computed name interpreted as property
|
||||
esid: sec-automatic-semicolon-insertion
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
---*/
|
||||
|
||||
var obj = {}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
description: ASI test in field declarations -- computed name interpreted as string index
|
||||
esid: sec-automatic-semicolon-insertion
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
---*/
|
||||
|
||||
class C {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
description: ASI test in field declarations -- error when computed name interpreted as index
|
||||
esid: sec-automatic-semicolon-insertion
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
description: ASI test in field declarations -- error when generator interpreted as multiplication
|
||||
esid: sec-automatic-semicolon-insertion
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public, generators]
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
description: ASI test in field declarations -- field with PropertyName "in" interpreted as index
|
||||
esid: sec-automatic-semicolon-insertion
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
---*/
|
||||
|
||||
var x = 0;
|
||||
|
|
|
@ -6,7 +6,7 @@ description: >
|
|||
static class fields forbid PropName 'constructor' (no early error for
|
||||
ComputedPropertyName)
|
||||
esid: sec-class-definitions-static-semantics-early-errors
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
info: |
|
||||
Static Semantics: PropName
|
||||
...
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
description: >
|
||||
Cannot redefine a non-configurable, non-writable "prototype" property
|
||||
esid: runtime-semantics-class-definition-evaluation
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
info: |
|
||||
// This test file also tests the ComputedPropertyName won't trigger the
|
||||
// following early error:
|
||||
|
|
|
@ -28,7 +28,7 @@ info: |
|
|||
1. Let fieldName be the result of evaluating ClassElementName.
|
||||
2. ReturnIfAbrupt(fieldName).
|
||||
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
---*/
|
||||
|
||||
function f() {
|
||||
|
|
|
@ -28,7 +28,7 @@ info: |
|
|||
5. If initializer is not empty, then
|
||||
a. Let initValue be ? Call(initializer, receiver).
|
||||
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
---*/
|
||||
|
||||
function f() {
|
||||
|
|
|
@ -34,7 +34,7 @@ info: |
|
|||
5. If initializer is not empty, then
|
||||
a.Let initValue be ? Call(initializer, receiver).
|
||||
|
||||
features: [class-fields]
|
||||
features: [class, class-fields-public]
|
||||
---*/
|
||||
|
||||
function f() {
|
||||
|
|
Loading…
Reference in New Issue