Merge branch 'main' into dev

This commit is contained in:
MihailRis 2025-07-26 23:10:16 +03:00
commit 61e85ad575

View File

@ -569,9 +569,18 @@ 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(lvl, fields)
if type(lvl) == "number" then
lvl = lvl + 1
end
local debuginfo = _getinfo(lvl, fields)
debuginfo.func = nil
return debuginfo
end
-- --------- Deprecated functions ------ --
local function wrap_deprecated(func, name, alternatives)