1 // |reftest| error:SyntaxError module
2 // Copyright (C) 2016 the V8 project authors. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
6 Generator function declarations are interpreted as lexically-scoped in
8 esid: sec-module-semantics-static-semantics-lexicallydeclarednames
10 ModuleItem : StatementListItem
12 1. Return LexicallyDeclaredNames of StatementListItem.
14 15.2.1.1 Static Semantics: Early Errors
16 - It is a Syntax Error if any element of the LexicallyDeclaredNames of
17 ModuleItemList also occurs in the VarDeclaredNames of ModuleItemList.
22 features: [generators]