aboutsummaryrefslogtreecommitdiff
path: root/testes
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-10-19 15:55:25 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-10-19 15:55:25 -0300
commite4a38eb0e828e9589c391171e2e1904a3b9698e7 (patch)
tree694af4b6797f8e8597bc87185f9718e24a349120 /testes
parentf07de225762ee0f2d5b411b948b3c6e28e0695d3 (diff)
downloadlua-e4a38eb0e828e9589c391171e2e1904a3b9698e7.tar.gz
lua-e4a38eb0e828e9589c391171e2e1904a3b9698e7.tar.bz2
lua-e4a38eb0e828e9589c391171e2e1904a3b9698e7.zip
Fixed wrong trace of vararg functions
Trace of vararg functions was skipping an instruction when returning from a call. (Bug introduced by commit 5d8ce05b3.)
Diffstat (limited to 'testes')
-rw-r--r--testes/db.lua10
1 files changed, 10 insertions, 0 deletions
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
119end 119end
120]], {2,3,4,7}) 120]], {2,3,4,7})
121 121
122test([[
123local function foo()
124end
125foo()
126A = 1
127A = 2
128A = 3
129]], {2, 3, 2, 4, 5, 6})
130
131
122test([[-- 132test([[--
123if nil then 133if nil then
124 a=1 134 a=1