Sergey,
thanks for the patch! LGTMThis patch refactors the aforementioned test to make its code style closer to ours. Relates to tarantool/tarantool#9398 ---
test/LuaJIT-tests/trace/tcall_base.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/LuaJIT-tests/trace/tcall_base.lua b/test/LuaJIT-tests/trace/tcall_base.lua index 7d8d75e0..65fc118e 100644 --- a/test/LuaJIT-tests/trace/tcall_base.lua +++ b/test/LuaJIT-tests/trace/tcall_base.lua @@ -1,11 +1,11 @@ local r = 0 local function g() r = r + 1 - for i=1,100 do end + for _ = 1, 100 do end end local function f() - for j=1,20 do + for j = 1, 20 do if j > 19 then return g() -- Tailcall at base. -- Let this link to the already compiled loop in g(). @@ -15,6 +15,6 @@ end do --- Recording tailcall at base slot. g() -- Compile this loop first. - for i=1,50 do f() end + for _ = 1, 50 do f() end assert(r == 51) end