function Promise.rejected(...)local D=select("\035",...)if D==0 then return _emptyRejectedPromise end local V=Promise.new()V:_reject({...},D)return V end

function Promise.rejected(...)
	local n = select("#", ...)
	if n == 0 then
		-- Reuse promise here to save on calls to Promise.rejected()
		return _emptyRejectedPromise
	end

	local promise = Promise.new()
	promise:_reject({...}, n)
	return promise
end
