diff options
Diffstat (limited to 'src/class-fields/propname-error-static/cls-expr-static-field-initializer.template')
-rw-r--r-- | src/class-fields/propname-error-static/cls-expr-static-field-initializer.template | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/class-fields/propname-error-static/cls-expr-static-field-initializer.template b/src/class-fields/propname-error-static/cls-expr-static-field-initializer.template new file mode 100644 index 000000000..c59ae1a64 --- /dev/null +++ b/src/class-fields/propname-error-static/cls-expr-static-field-initializer.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/expressions/class/fields-initializer- +name: early error -- static ClassElementName Initializer +negative: + type: SyntaxError + phase: early +---*/ + +throw "Test262: This statement should not be evaluated."; + +var C = class { + static /*{ propname }*/ = 0; +}; |