fix debug.getinfo
This commit is contained in:
parent
844eb054af
commit
635b66a8c6
@ -535,8 +535,11 @@ local _getinfo = debug.getinfo
|
||||
for i, name in ipairs(removed_names) do
|
||||
debug[name] = nil
|
||||
end
|
||||
debug.getinfo = function(...)
|
||||
local debuginfo = _getinfo(...)
|
||||
debug.getinfo = function(lvl, fields)
|
||||
if type(lvl) == "number" then
|
||||
lvl = lvl + 1
|
||||
end
|
||||
local debuginfo = _getinfo(lvl, fields)
|
||||
debuginfo.func = nil
|
||||
return debuginfo
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user