diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2020-10-19 15:55:25 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2020-10-19 15:55:25 -0300 |
commit | e4a38eb0e828e9589c391171e2e1904a3b9698e7 (patch) | |
tree | 694af4b6797f8e8597bc87185f9718e24a349120 /testes | |
parent | f07de225762ee0f2d5b411b948b3c6e28e0695d3 (diff) | |
download | lua-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.lua | 10 |
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 | |||
119 | end | 119 | end |
120 | ]], {2,3,4,7}) | 120 | ]], {2,3,4,7}) |
121 | 121 | ||
122 | test([[ | ||
123 | local function foo() | ||
124 | end | ||
125 | foo() | ||
126 | A = 1 | ||
127 | A = 2 | ||
128 | A = 3 | ||
129 | ]], {2, 3, 2, 4, 5, 6}) | ||
130 | |||
131 | |||
122 | test([[-- | 132 | test([[-- |
123 | if nil then | 133 | if nil then |
124 | a=1 | 134 | a=1 |