Fix func.call_by_value nil handling

This commit is contained in:
Lars Mueller 2022-09-07 11:42:37 +02:00
parent bd150ce209
commit 2a133df40d

@ -101,7 +101,7 @@ end
--+ Calls func using the provided arguments, deepcopies all arguments
function call_by_value(func, ...)
return func(unpack(modlib.table.deepcopy{...}))
return func(unpack(modlib.table.deepcopy{...}, 1, select("#", ...)))
end
-- Functional wrappers for Lua's builtin metatable operators (arithmetic, concatenation, length, comparison, indexing, call)