view util/xpcall.lua @ 12929:245ffbb06f55

util.jwt: Import definition of key from util.crypto Turns out we had a definition of that already
author Kim Alvefur <zash@zash.se>
date Fri, 10 Mar 2023 13:58:43 +0100
parents cfc7b2f7251e
children 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"util.compat".xpcall;
end

return {
	xpcall = xpcall;
};