diff options
Diffstat (limited to 'src/class-fields/initializer-error/cls-decl-fields-arrow-fnc.template')
-rw-r--r-- | src/class-fields/initializer-error/cls-decl-fields-arrow-fnc.template | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/class-fields/initializer-error/cls-decl-fields-arrow-fnc.template b/src/class-fields/initializer-error/cls-decl-fields-arrow-fnc.template new file mode 100644 index 000000000..308297a34 --- /dev/null +++ b/src/class-fields/initializer-error/cls-decl-fields-arrow-fnc.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/statements/class/fields-arrow-fnc- +name: arrow function expression +features: [arrow-function] +---*/ + +throw "Test262: This statement should not be evaluated."; + +class C { + x = () => /*{ initializer }*/; +} |