mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-12 00:35:56 -04:00
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:
parent
d020e0d941
commit
c69c9e6748
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user