Merge branch 'main' into release-0.28

This commit is contained in:
MihailRis 2025-07-26 19:12:22 +03:00
commit 8685edec7e

View file

@ -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)