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
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ end
local function formatValue(v) local function formatValue(v)
if type(v) == "table" then 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 if w then return rs end
end end
return tostring(v) return tostring(v)