Skip to content

Commit 3e4f146

Browse files
khonkhortisanPilzAdam
authored andcommittedJun 15, 2013
Fix crash in dump() when index is a table
1 parent 40b2f36 commit 3e4f146

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎builtin/misc_helpers.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function dump(o, dumped)
5757
dumped[o] = true
5858
local t = {}
5959
for k,v in pairs(o) do
60-
t[#t+1] = "" .. k .. " = " .. dump(v, dumped)
60+
t[#t+1] = "" .. dump(k, dumped) .. " = " .. dump(v, dumped)
6161
end
6262
return "{" .. table.concat(t, ", ") .. "}"
6363
elseif type(o) == "boolean" then

0 commit comments

Comments
 (0)