eris: disable unit test of __persist metamethod
This commit is contained in:
@@ -137,19 +137,23 @@ rootobj.testuvcycle = uvcycle
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
-- Special callback for persisting tables.
|
||||
--
|
||||
-- Note: the __persist metamethod was deliberately disabled in the
|
||||
-- luprex version of eris. Therefore this unit test was also disabled.
|
||||
--
|
||||
|
||||
local sptable = { a = 3 }
|
||||
|
||||
setmetatable(sptable, {
|
||||
__persist = function(tbl)
|
||||
local a = tbl.a
|
||||
return function()
|
||||
return { a = a+3 }
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
rootobj.testsptable = sptable
|
||||
-- local sptable = { a = 3 }
|
||||
--
|
||||
-- setmetatable(sptable, {
|
||||
-- __persist = function(tbl)
|
||||
-- local a = tbl.a
|
||||
-- return function()
|
||||
-- return { a = a+3 }
|
||||
-- end
|
||||
-- end
|
||||
-- })
|
||||
--
|
||||
-- rootobj.testsptable = sptable
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
-- Special callbacks for persisting userdata.
|
||||
|
||||
Reference in New Issue
Block a user