diff options
Diffstat (limited to 'src/class-fields/propname-error-static/cls-decl-static-literal-name.template')
-rw-r--r-- | src/class-fields/propname-error-static/cls-decl-static-literal-name.template | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/class-fields/propname-error-static/cls-decl-static-literal-name.template b/src/class-fields/propname-error-static/cls-decl-static-literal-name.template new file mode 100644 index 000000000..bba9b7d15 --- /dev/null +++ b/src/class-fields/propname-error-static/cls-decl-static-literal-name.template @@ -0,0 +1,16 @@ +// Copyright (C) 2017 Valerie Young. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +path: language/statements/class/fields-prop-name- +name: early error -- static ClassElementName +negative: + type: SyntaxError + phase: early +---*/ + +throw "Test262: This statement should not be evaluated."; + +class C { + static /*{ propname }*/; +} |