diff -r 000000000000 -r 550f506de75a util/xpcall.lua --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/util/xpcall.lua Thu Dec 03 17:05:27 2020 +0000 @@ -0,0 +1,9 @@ +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; +};