1 // |reftest| error:SyntaxError module
2 // Copyright (C) 2017 Valerie Young. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
5 esid: sec-module-semantics-static-semantics-early-errors
6 description: Early error when referencing privatename in field without being declared in class fields
8 Static Semantics: Early Errors
10 It is a Syntax Error if AllPrivateNamesValid of ModuleBody with an empty List as an argument is false.
11 features: [class, class-fields-private, class-fields-public]