view util/xpcall.lua @ 14026:8a9c1bc37ebc 13.0

Added tag 13.0.3 for changeset f65302ea37b0
author Matthew Wild <mwild1@gmail.com>
date Mon, 05 Jan 2026 12:34:37 +0000
parents d10957394a3c
children
line wrap: on
line source

local xpcall = xpcall;

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

return {
	xpcall = xpcall;
};