made the shell actually able to print tables containing functions

This commit is contained in:
Izaya 2020-03-24 16:26:48 +11:00
parent 7b8c532141
commit 1f97e90066

View File

@ -12,7 +12,7 @@ end
local function formatValue(v)
if type(v) == "table" then
local w, rs = pcall(serial.serialize,v)
local w, rs = pcall(serial.serialize,v,true)
if w then return rs end
end
return tostring(v)