File

util/xpcall.lua @ 13754:0bd65ed1fd10 13.0

net.server_epoll: Improve readability of DANE noise Serialized Lua is not the most readable form of TLSA records.
author Kim Alvefur <zash@zash.se>
date Thu, 27 Feb 2025 21:36:43 +0100
parent 12975:d10957394a3c
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;
};