Mercurial > prosody-hg
view util/xpcall.lua @ 10236:37ddbfea561e 0.11
Added tag 0.11.3 for changeset dd7e924c74ef
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 05 Sep 2019 16:01:16 +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; };
