viruscamp / luadec

Lua Decompiler for lua 5.1 , 5.2 and 5.3
1.14k stars 343 forks source link

cannot jmp out else, if next stmt is also if #23

Closed viruscamp closed 9 years ago

viruscamp commented 10 years ago

see https://code.google.com/p/luadec/issues/detail?id=6

local a,b,c,f

function ok1()
    local a,b,c,f
    --ok
    if b==1 then
        c = 11
    elseif b==2 then
        c = 12
    else
        c = 13
    end
    print(f)
    if b==4 then
        c = 14
    end
end

function error1()
    local a,b,c,f
    --ok
    if b==1 then
        c = 11
    elseif b==2 then
        c = 12
    else
        c = 13
    end
    --print(f)
    if b==4 then
        c = 14
    end
end
viruscamp commented 9 years ago

same as #33 and fixed in 1f92eb3