mirror of
https://github.com/leafo/moonscript.git
synced 2024-11-22 02:44:23 +00:00
fixed bug in util.dump
This commit is contained in:
parent
ecc2a0a59c
commit
2c1b3ab00c
@ -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 = { }
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user