Mercurial > prosody-hg
view util/xpcall.lua @ 12543:cf29bdb74c15 0.12
Added tag 0.12.1 for changeset 252ed01896dd
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 09 Jun 2022 12:42:57 +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; };
