[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Bug in <close> implementation in Lua 5.4.0-rc3 (attempt to close an unrelated variable)
- From: Andrew Gierth <andrew@...>
- Date: Sat, 23 May 2020 01:19:01 +0100
>>>>> "Joseph" == Joseph C Sible <josephcsible@gmail.com> writes:
Joseph> I can confirm as well, and I also managed to minimize the
Joseph> reproducer some more:
Joseph> local var1 <const> = nil
Joseph> local var2 <const> = nil
Joseph> do
Joseph> local var3 <close> = setmetatable({}, {__close = function() end})
Joseph> end
Joseph> local var4 = true
Here's a related but slightly different test case:
do
local v1 <const>, v2 <const>, v3 <close>
= nil, nil, setmetatable({}, {__close = function() end})
end
local v4 = true
--
Andrew.