<!DOCTYPE html>
<html data-lt-installed="true">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body style="padding-bottom: 1px;">
<p>Sergey,<br>
</p>
<div class="moz-cite-prefix">On 21.08.2024 11:58, Sergey Kaplun
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:21d553d0dc7347f32cd78a99e0627c4e1e6d8081.1724228998.git.skaplun@tarantool.org">
<pre class="moz-quote-pre" wrap="">This patch refactors the aforementioned test to make its code style
closer to ours.
Relates to tarantool/tarantool#9398
---</pre>
</blockquote>
thanks for the patch! LGTM<br>
<blockquote type="cite"
cite="mid:21d553d0dc7347f32cd78a99e0627c4e1e6d8081.1724228998.git.skaplun@tarantool.org">
<pre class="moz-quote-pre" wrap="">
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
</pre>
</blockquote>
</body>
<lt-container></lt-container>
</html>