File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ dump = function(what)
103103 end
104104 seen [what ] = false
105105 local class_name
106- if what .__class then
106+ if type ( what .__class ) == " table " and type ( what . __class . __name ) == " string " then
107107 class_name = " <" .. tostring (what .__class .__name ) .. " >"
108108 end
109109 return tostring (class_name or " " ) .. " {\n " .. concat (lines ) .. (" " ):rep ((depth - 1 ) * 4 ) .. " }\n "
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ dump = (what) ->
7070
7171 seen[ what] = false
7272
73- class_name = if what. __class
73+ class_name = if type ( what. __class) == " table " and type ( what . __class . __name ) == " string "
7474 " <#{what.__class.__name}>"
7575
7676 " #{class_name or " " }{\n " .. concat( lines) .. ( " " ) \ rep(( depth - 1 ) * 4 ) .. " }\n "
You can’t perform that action at this time.
0 commit comments