luac-parser-rs icon indicating copy to clipboard operation
luac-parser-rs copied to clipboard

TFORLOOP 5.1 problem

Open toxamin opened this issue 2 years ago • 1 comments

When given the following script:

for i in ipairs(_table) do
end

Metaworm's luadec generates the following result:

-- error: decompile function#0: generate_block
-- 
-- Caused by:
--     conditional block should not has goto statement

This only happens on Lua 5.1, where there are no instructions between JMP and TFORLOOP.

toxamin avatar Nov 02 '23 21:11 toxamin

Thank you for your meticulous testing. I have fixed many issues you reported, but it has also introduced new problems. I need some more time to continue refining before I can release it.

metaworm avatar Nov 15 '23 12:11 metaworm