summaryrefslogtreecommitdiff
path: root/lualibs-util-tab.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2016-08-15 22:39:47 +0200
committerPhilipp Gesang <phg@phi-gamma.net>2016-08-15 22:39:47 +0200
commit8ee68eedb5cbdf06585f6f37bdc361b69437a25d (patch)
tree228c85b38d015ec6237976808ea82b8616b22e21 /lualibs-util-tab.lua
parent935306412b57f436fcb5307a14941ded3eb3168d (diff)
downloadlualibs-8ee68eedb5cbdf06585f6f37bdc361b69437a25d.tar.gz
sync with Cotnext as of 2016-08-15
Diffstat (limited to 'lualibs-util-tab.lua')
-rw-r--r--lualibs-util-tab.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lualibs-util-tab.lua b/lualibs-util-tab.lua
index a6239ad..d502058 100644
--- a/lualibs-util-tab.lua
+++ b/lualibs-util-tab.lua
@@ -812,7 +812,7 @@ local function serialize(root,name,specification)
-- The dummy access will initialize a table that has a delayed initialization
-- using a metatable. (maybe explicitly test for metatable)
if getmetatable(root) then -- todo: make this an option, maybe even per subtable
- local dummy = root._w_h_a_t_e_v_e_r_
+ local dummy = root._w_h_a_t_e_v_e_r_ -- needed
root._w_h_a_t_e_v_e_r_ = nil
end
-- Let's forget about empty tables.