archives

« Bugzilla Issues Index

#2323 — 13.1.*: Behaviour for top-level GeneratorDeclarations unclear


The rev21 changes in 13.1.4-13.1.7 seem to indicate that top-level GeneratorDeclarations are intended to act like FunctionDeclarations, but in 9.2.13 "Function Declaration Instantiation" and 15.2.8 "GlobalDeclarationInstantiation" top-level GeneratorDeclarations act like other lexical declarations forms (i.e. "let", "const" or "class").


yes, 9.2.13 and 15.2.8

In all contexts a function * declaration should bind just like a function declaration for the same name.


fixed in rev24