return debug.getinfo function
This commit is contained in:
parent
00c7c986bb
commit
844eb054af
@ -531,9 +531,15 @@ local removed_names = {
|
||||
"getregistry", "getupvalue", "setupvalue", "upvalueid", "upvaluejoin",
|
||||
"sethook", "gethook", "getinfo"
|
||||
}
|
||||
local _getinfo = debug.getinfo
|
||||
for i, name in ipairs(removed_names) do
|
||||
debug[name] = nil
|
||||
end
|
||||
debug.getinfo = function(...)
|
||||
local debuginfo = _getinfo(...)
|
||||
debuginfo.func = nil
|
||||
return debuginfo
|
||||
end
|
||||
|
||||
-- --------- Deprecated functions ------ --
|
||||
local function wrap_deprecated(func, name, alternatives)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user