returning just the first value of debug getlocal and getupvalue

the suggested access was to return nil always as the value, but these values aren't nil, and I felt it reasonable to return at least the variable name and not mislead that the value was nil

closes #1607
This commit is contained in:
payonel 2018-03-14 23:31:43 -07:00
parent d020e0d941
commit c69c9e6748

View File

@ -938,7 +938,9 @@ sandbox = {
}
end
end,
traceback = debug.traceback
traceback = debug.traceback,
getlocal = function(...) return (debug.getlocal(...)) end,
getupvalue = function(...) return (debug.getupvalue(...)) end,
},
-- Lua 5.3.