view util/xpcall.lua @ 13914:1bc4e7ab964c

Merge 13.0->trunk
author Kim Alvefur <zash@zash.se>
date Mon, 14 Jul 2025 16:44:10 +0200
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;
};