util/xpcall.lua
author Matthew Wild <mwild1@gmail.com>
Sat, 08 Oct 2022 23:55:22 +0100
changeset 12759 a09dacf660d2
parent 9564 cfc7b2f7251e
child 12979 d10957394a3c
permissions -rw-r--r--
util.datetime: Add some missing test cases You guessed it, mutation testing.

local xpcall = xpcall;

if select(2, xpcall(function (x) return x end, function () end,  "test")) ~= "test" then
	xpcall = require"util.compat".xpcall;
end

return {
	xpcall = xpcall;
};