[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lua-l
Subject:    Re: To be closed variable from for in loop might not be closed
From:       Roberto Ierusalimschy <roberto () inf ! puc-rio ! br>
Date:       2022-05-26 13:36:29
Message-ID: 20220526133629.GA16724 () arraial ! inf ! puc-rio ! br
[Download RAW message or body]

> 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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic