Files
scriptc/tests
Chris Tate 766a732f8e Initialize a forward-captured binding's box when its statement lowers again
A binding that a function declared earlier captures is pre-declared as a
TDZ box, and its declaration's assign initializes the box. The declaration
dropped the pre-declaration before lowering its initializer. When the
initializer failed with a degradable type (a cast whose type does not
compile) and the statement commit point lowered the statement again, the
retry no longer saw the box: it declared a new local and initialized that,
and a later call of the function threw ReferenceError.

The pre-declaration is now dropped after the initializer lowers, for
variable, class and generic-function declarations.
2026-10-25 23:21:20 -05:00
..
2026-10-25 10:55:32 -05:00
…