|
|
|
a. Let fn of f . b. Let fo of f with argument env . c. Perform ? env .CreateGlobalFunctionBinding( fn , fo , false ). 17. For each String vn of declaredVarNames , do a. Perform ? env .CreateGlobalVarBinding( vn , false ). 18. Return ( empty ). NOTE 2
:
:
:
: ImportDeclaration :
It is a Syntax Error if the contains any duplicate entries. It is a Syntax Error if any element of the of also occurs in the of . Early errors specified in prevent name conflicts between function/var declarations and let/const/class declarations as well as redeclaration of let/const/class bindings for declaration . However, such conflicts and redeclarations that span more than one are detected as runtime errors during GlobalDeclarationInstantiation. If any such errors are detected, no bindings are instantiated for the script. However, if the defined using Proxy exotic objects then the runtime tests for conflicting declarations may be and some global declarations not being instantiated. If this occurs, the code for the Unlike explicit var or function declarations, properties that are directly created on the result in global bindings that may be shadowed by let/const/class declarations. 16.2 Modules Syntax 16.2.1 Module Semantics 16.2.1.1 Static Semantics: Early Errors 432 |