summaryrefslogtreecommitdiff
path: root/xmake/core/base/dump.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/base/dump.lua')
-rw-r--r--xmake/core/base/dump.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/xmake/core/base/dump.lua b/xmake/core/base/dump.lua
index 469454fa8..199dc1e19 100644
--- a/xmake/core/base/dump.lua
+++ b/xmake/core/base/dump.lua
@@ -235,8 +235,10 @@ function dump._get_printed_set(printed_set, value)
local first_level = not printed_set
if type(printed_set) ~= "table" then
printed_set = {id = 0, refs = {}}
- printed_set[value] = {obj = value}
- dump._init_printed_set(printed_set, value)
+ if type(value) == "table" then
+ printed_set[value] = {obj = value}
+ dump._init_printed_set(printed_set, value)
+ end
end
return printed_set, first_level
end