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