Closed wrefgtzweve closed 1 year ago
use minifer
function example()end;local a={"test1"}local b={}for c,d in ipairs(a)do example(d,example(),function()if b[d]then return end end)end
I have identified the cause of this issue. There is a bug with for and for in loops, wheren the for variables cannot be used as upvalues. I am working on a fix.
Edit: The bug only exists in for in loops
Describe the bug Code works fine without obfuscation but errors once obfuscated.
Expected behavior Obfuscated code doesn't error.
To Reproduce Obfuscate on weak or higher:
Run output
lua: [string "<eval>"]:1: attempt to perform arithmetic on field '?' (a nil value)