[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: To be closed variable from for in loop might not be closed
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 26 May 2022 10:36:29 -0300
> I found that the leaveblock function might generate an OP_CLOSE bytecode
> which will not close the to be closed variable of a for in loop when the
> break label generated in https://github.com/lua/lua/blob/8426d9b4d4df1da3c5b2d759e509ae1c50a86667/lparser.c#L677-L680
> already generated an OP_CLOSE bytecode which does not take the to be
> closed variable from the loop into account.
Many thanks for the report.
-- Roberto