summaryrefslogtreecommitdiff
path: root/src/class-fields/initializer-error/cls-expr-fields-comp-name.template
diff options
context:
space:
mode:
Diffstat (limited to 'src/class-fields/initializer-error/cls-expr-fields-comp-name.template')
-rw-r--r--src/class-fields/initializer-error/cls-expr-fields-comp-name.template15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/class-fields/initializer-error/cls-expr-fields-comp-name.template b/src/class-fields/initializer-error/cls-expr-fields-comp-name.template
new file mode 100644
index 000000000..fea438412
--- /dev/null
+++ b/src/class-fields/initializer-error/cls-expr-fields-comp-name.template
@@ -0,0 +1,15 @@
+// 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/expressions/class/fields-comp-name-
+name: computed ClassElementName
+---*/
+
+throw "Test262: This statement should not be evaluated.";
+
+var x = "string";
+var C = class {
+ [x] = /*{ initializer }*/;
+}