repo.or.cz
/
prosody.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Prepare required data folder for integration tests
[prosody.git]
/
util
/
xpcall.lua
blob
d2fc50118899a9446a43dd50095285d5e42e88d8
1
local
xpcall
=
xpcall
;
2
3
if
select
(
2
,
xpcall
(
function
(
x
)
return
x
end
,
function
()
end
,
"test"
)) ~=
"test"
then
4
xpcall
=
require
"util.compat"
.
xpcall
;
5
end
6
7
return
{
8
xpcall
=
xpcall
;
9
};