Has taken too much time now, rip 6 hours

This commit is contained in:
Cooldude2606
2018-10-25 17:52:55 +01:00
parent a0bb25630c
commit 977d24fcaa
2 changed files with 11 additions and 7 deletions

View File

@@ -45,8 +45,9 @@ end
-- @treturn table the env table with _G keys removed
-- @warning does not work from console
function ExpLib.get_upvalues(level)
local level = level and level+1 or 2
local func = debug.getinfo(level).func
local func = level and ExpLib.is_type(level,'function') and level or nil
local level = level and ExpLib.is_type(level,'number') and level+1 or 2
func = func or debug.getinfo(level).func
local upvalues = setmetatable({},{__index=_G})
local i = 1
while true do