1 // |reftest| error:SyntaxError module
2 // Copyright 2021 Chengzhong Wu. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
6 esid: sec-module-semantics-static-semantics-early-errors
8 It is a Syntax Error if the LexicallyDeclaredNames of ModuleItemList
9 contains any duplicate entries.
10 At the top level of a Module, function declarations are treated like
11 lexical declarations rather than like var declarations.