Mercurial > prosody-hg
view util/xpcall.lua @ 12149:bbbf0dd90b6d
mod_bookmarks: Remove compatibility with 0.11
| author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
|---|---|
| date | Tue, 04 Jan 2022 23:16:02 +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; };
