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)
103
103
end
104
104
seen [what ] = false
105
105
local class_name
106
- if what .__class then
106
+ if type ( what .__class ) == " table " and type ( what . __class . __name ) == " string " then
107
107
class_name = " <" .. tostring (what .__class .__name ) .. " >"
108
108
end
109
109
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) ->
70
70
71
71
seen[ what] = false
72
72
73
- class_name = if what. __class
73
+ class_name = if type ( what. __class) == " table " and type ( what . __class . __name ) == " string "
74
74
" <#{what.__class.__name}>"
75
75
76
76
" #{class_name or " " }{\n " .. concat( lines) .. ( " " ) \ rep(( depth - 1 ) * 4 ) .. " }\n "
You can’t perform that action at this time.
0 commit comments