File

util/xpcall.lua @ 12963:276b7d470433

scansion: PEP notifications no longer carry 'publisher' by default Previous behaviour: - publisher was always included in PEP notifications - publisher was never included in get_items requests New behaviour: - publisher is included in both notifications and retrieval if itemreply == publisher - publisher is not ever included if itemreply ~= publisher
author Matthew Wild <mwild1@gmail.com>
date Wed, 22 Mar 2023 16:48:51 +0000
parent 9561:cfc7b2f7251e
child 12975: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;
};