Skip to content
Snippets Groups Projects
Commit 192c8fd4 authored by Rick Waldron's avatar Rick Waldron Committed by Leo Balter
Browse files

Class Fields: features corrections

parent ad446cae
No related branches found
No related tags found
No related merge requests found
Showing
with 21 additions and 4 deletions
......@@ -13,7 +13,7 @@ info: |
It is a Syntax Error if the UnaryExpression is contained in strict mode code and the derived UnaryExpression is PrimaryExpression : IdentifierReference , MemberExpression : MemberExpression.PrivateName , or CallExpression : CallExpression.PrivateName .
It is a Syntax Error if the derived UnaryExpression is PrimaryExpression : CoverParenthesizedExpressionAndArrowParameterList and CoverParenthesizedExpressionAndArrowParameterList ultimately derives a phrase that, if used in place of UnaryExpression, would produce a Syntax Error according to these rules. This rule is recursively applied.
features: [class, class-fields-private]
features: [class, class-fields-private, class-fields-public]
negative:
type: SyntaxError
phase: parse
......
......@@ -5,7 +5,7 @@
esid: sec-class-definitions-static-semantics-early-errors
path: language/statements/class/fields-arrow-fnc-
name: arrow function expression
features: [arrow-function]
features: [arrow-function, class-fields-public]
---*/
throw "Test262: This statement should not be evaluated.";
......
......@@ -5,11 +5,12 @@
esid: sec-class-definitions-static-semantics-early-errors
path: language/statements/class/fields-comp-name-
name: computed ClassElementName
features: [class, class-fields-public]
---*/
throw "Test262: This statement should not be evaluated.";
var x = "string";
class C {
static [x] = /*{ initializer }*/;
[x] = /*{ initializer }*/;
}
......@@ -5,6 +5,7 @@
esid: sec-class-definitions-static-semantics-early-errors
path: language/statements/class/fields-equality-
name: equality expression
features: [class, class-fields-public]
---*/
throw "Test262: This statement should not be evaluated.";
......
......@@ -5,6 +5,7 @@
esid: sec-class-definitions-static-semantics-early-errors
path: language/statements/class/fields-literal-name-
name: literal ClassElementName
features: [class, class-fields-public]
---*/
throw "Test262: This statement should not be evaluated.";
......
......@@ -5,6 +5,7 @@
esid: sec-class-definitions-static-semantics-early-errors
path: language/statements/class/fields-static-comp-name-
name: static computed ClassElementName
features: [class, class-static-fields-public]
---*/
throw "Test262: This statement should not be evaluated.";
......
......@@ -5,6 +5,7 @@
esid: sec-class-definitions-static-semantics-early-errors
path: language/statements/class/fields-static-literal-
name: static literal ClassElementName
features: [class, class-static-fields-public]
---*/
throw "Test262: This statement should not be evaluated.";
......
......@@ -5,6 +5,7 @@
esid: sec-class-definitions-static-semantics-early-errors
path: language/statements/class/fields-static-private-
name: static PrivateName
features: [class, class-static-fields-private]
---*/
throw "Test262: This statement should not be evaluated.";
......
......@@ -5,6 +5,7 @@
esid: sec-class-definitions-static-semantics-early-errors
path: language/statements/class/fields-static-string-literal-name-
name: static string literal ClassElementName
features: [class, class-static-fields-public]
---*/
throw "Test262: This statement should not be evaluated.";
......
......@@ -5,6 +5,7 @@
esid: sec-class-definitions-static-semantics-early-errors
path: language/statements/class/fields-string-literal-name-
name: string literal ClassElementName
features: [class, class-fields-public]
---*/
throw "Test262: This statement should not be evaluated.";
......
......@@ -5,6 +5,7 @@
esid: sec-class-definitions-static-semantics-early-errors
path: language/statements/class/fields-ternary-
name: ternary expression
features: [class, class-fields-public]
---*/
throw "Test262: This statement should not be evaluated.";
......
......@@ -5,6 +5,7 @@
esid: sec-class-definitions-static-semantics-early-errors
path: language/statements/class/fields-typeof-
name: typeof expression
features: [class, class-fields-public]
---*/
throw "Test262: This statement should not be evaluated.";
......
......@@ -5,7 +5,7 @@
esid: sec-class-definitions-static-semantics-early-errors
path: language/expressions/class/fields-arrow-fnc-
name: arrow function expression
features: [arrow-function]
features: [arrow-function, class, class-fields-public]
---*/
throw "Test262: This statement should not be evaluated.";
......
......@@ -5,6 +5,7 @@
esid: sec-class-definitions-static-semantics-early-errors
path: language/expressions/class/fields-comp-name-
name: computed ClassElementName
features: [class, class-fields-public]
---*/
throw "Test262: This statement should not be evaluated.";
......
......@@ -5,6 +5,7 @@
esid: sec-class-definitions-static-semantics-early-errors
path: language/expressions/class/fields-equality-
name: equality expression
features: [class, class-fields-public]
---*/
throw "Test262: This statement should not be evaluated.";
......
......@@ -5,6 +5,7 @@
esid: sec-class-definitions-static-semantics-early-errors
path: language/expressions/class/fields-literal-name-
name: literal ClassElementName
features: [class, class-fields-public]
---*/
throw "Test262: This statement should not be evaluated.";
......
......@@ -5,6 +5,7 @@
esid: sec-class-definitions-static-semantics-early-errors
path: language/expressions/class/fields-static-comp-name-
name: static computed ClassElementName
features: [class, class-static-fields-public]
---*/
throw "Test262: This statement should not be evaluated.";
......
......@@ -5,6 +5,7 @@
esid: sec-class-definitions-static-semantics-early-errors
path: language/expressions/class/fields-static-literal-
name: static literal ClassElementName
features: [class, class-static-fields-public]
---*/
throw "Test262: This statement should not be evaluated.";
......
......@@ -5,6 +5,7 @@
esid: sec-class-definitions-static-semantics-early-errors
path: language/expressions/class/fields-static-private-
name: static PrivateName
features: [class, class-static-fields-private]
---*/
throw "Test262: This statement should not be evaluated.";
......
......@@ -5,6 +5,7 @@
esid: sec-class-definitions-static-semantics-early-errors
path: language/expressions/class/fields-static-string-literal-name-
name: static string literal ClassElementName
features: [class, class-static-fields-public]
---*/
throw "Test262: This statement should not be evaluated.";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment