summaryrefslogtreecommitdiff
path: root/src/class-fields/propname-error/cls-decl-literal-name.template
diff options
context:
space:
mode:
Diffstat (limited to 'src/class-fields/propname-error/cls-decl-literal-name.template')
-rw-r--r--src/class-fields/propname-error/cls-decl-literal-name.template21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/class-fields/propname-error/cls-decl-literal-name.template b/src/class-fields/propname-error/cls-decl-literal-name.template
new file mode 100644
index 000000000..b51b78ef2
--- /dev/null
+++ b/src/class-fields/propname-error/cls-decl-literal-name.template
@@ -0,0 +1,21 @@
+// Copyright (C) 2017 Valerie Young. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+esid: sec-class-definitions-static-semantics-early-errors
+path: language/statements/class/fields-literal-name-
+name: literal name
+negative:
+ type: SyntaxError
+ phase: early
+info: |
+ Static Semantics: PropName
+ LiteralPropertyName : IdentifierName
+ Return StringValue of IdentifierName.
+---*/
+
+throw "Test262: This statement should not be evaluated.";
+
+class C {
+ /*{ static }*/ /*{ propname }*/;
+}