From e4a38eb0e828e9589c391171e2e1904a3b9698e7 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 19 Oct 2020 15:55:25 -0300 Subject: Fixed wrong trace of vararg functions Trace of vararg functions was skipping an instruction when returning from a call. (Bug introduced by commit 5d8ce05b3.) --- testes/db.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'testes') diff --git a/testes/db.lua b/testes/db.lua index 5377f6ec..fdb0da4a 100644 --- a/testes/db.lua +++ b/testes/db.lua @@ -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 -- cgit v1.2.3-55-g6feb