viruscamp / luadec

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

missing a upvalue set nil at start of sub function #16

Open viruscamp opened 10 years ago

viruscamp commented 10 years ago
local a, b
function f()
    a,b=nil
    return false
end

luadec issue15_fn_upvalue.lua

-- function num : 0
local a, b = nil, nil
f = function()
  -- function num : 0_0 , upvalues : a, b
  a = nil
  return false
end