ferib / LuaToolkit

Lua Encode/Decoder/Disassembler/Decompiler in C#
https://ferib.dev/blog.php?l=post/Lua_Devirtualization_Part_2_Decompiling_Lua
MIT License
86 stars 35 forks source link

local variables not always declared #25

Open ferib opened 1 year ago

ferib commented 1 year ago

Due to the way lua bytecode works it doesn't have to define the usage of a local variable, unlike Lua script. This causes some issues when decompiling as the definition is not there, making the decompiled script invalid.