fixed bug in util.dump

This commit is contained in:
leaf corcoran 2011-09-11 22:36:46 -07:00
parent ecc2a0a59c
commit 2c1b3ab00c
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ dump = function(what)
if seen[what] then
return "recursion(" .. tostring(what) .. ")...\n"
end
local _ = seen[what] == true
seen[what] = true
depth = depth + 1
local lines = (function()
local _accum_0 = { }

View File

@ -59,7 +59,7 @@ dump = (what) ->
elseif t == "table"
if seen[what]
return "recursion("..tostring(what) ..")...\n"
seen[what] == true
seen[what] = true
depth += 1
lines = for k,v in pairs what