Fixed wrong trace of vararg functions

Trace of vararg functions was skipping an instruction when returning
from a call. (Bug introduced by commit 5d8ce05b3.)
This commit is contained in:
Roberto Ierusalimschy
2020-10-19 15:55:25 -03:00
parent f07de22576
commit e4a38eb0e8
2 changed files with 35 additions and 20 deletions

View File

@@ -119,6 +119,16 @@ else
end
]], {2,3,4,7})
test([[
local function foo()
end
foo()
A = 1
A = 2
A = 3
]], {2, 3, 2, 4, 5, 6})
test([[--
if nil then
a=1