Skip to content

Commit

Permalink
Fix crash in dump() when index is a table
Browse files Browse the repository at this point in the history
  • Loading branch information
khonkhortisan authored and PilzAdam committed Jun 15, 2013
1 parent 40b2f36 commit 3e4f146
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/misc_helpers.lua
Expand Up @@ -57,7 +57,7 @@ function dump(o, dumped)
dumped[o] = true
local t = {}
for k,v in pairs(o) do
t[#t+1] = "" .. k .. " = " .. dump(v, dumped)
t[#t+1] = "" .. dump(k, dumped) .. " = " .. dump(v, dumped)
end
return "{" .. table.concat(t, ", ") .. "}"
elseif type(o) == "boolean" then
Expand Down

0 comments on commit 3e4f146

Please sign in to comment.