summaryrefslogtreecommitdiff
path: root/src/class-fields/propname-error-static/cls-expr-static-literal-name.template
diff options
context:
space:
mode:
Diffstat (limited to 'src/class-fields/propname-error-static/cls-expr-static-literal-name.template')
-rw-r--r--src/class-fields/propname-error-static/cls-expr-static-literal-name.template11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/class-fields/propname-error-static/cls-expr-static-literal-name.template b/src/class-fields/propname-error-static/cls-expr-static-literal-name.template
index e83ef26a3..a4a020067 100644
--- a/src/class-fields/propname-error-static/cls-expr-static-literal-name.template
+++ b/src/class-fields/propname-error-static/cls-expr-static-literal-name.template
@@ -2,11 +2,16 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
-path: language/expressions/class/fields-prop-name-
-name: early error -- static ClassElementName
+esid: sec-class-definitions-static-semantics-early-errors
+path: language/expressions/class/fields-literal-name-
+name: early error -- PropName of IdentifierName is forbidden
negative:
type: SyntaxError
- phase: early
+ phase: parse
+info: |
+ Static Semantics: PropName
+ LiteralPropertyName : IdentifierName
+ Return StringValue of IdentifierName.
---*/
throw "Test262: This statement should not be evaluated.";