local z if PROMISE_DEBUG then z=function(z,...)local R={pcall(z,...)}if not R[1]then warn(R[2])end return unpack(R)end else z=pcall end

local wpcall
if PROMISE_DEBUG then
	wpcall = function(f, ...)
		local result = { pcall(f, ...) }

		if not result[1] then
			warn(result[2])
		end

		return unpack(result)
	end
else
	wpcall = pcall
end
