lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


In Lua 5.3 equal functions are converted to different dumps when strip==true.

local function f(x) return x+1 end
local function g(y) return y+1 end
print(string.dump(f, true) == string.dump(g, true))  --> false on Lua 5.3, true on LuaJIT

If both dumps are load()-ed to exactly the same closures, why these dumps are not equal after stripping debug info?

-- Egor