function Promise.prototype.finallyCall(C,h,...)assert(type(h)=="\102\117\110\099\116\105\111\110",string.format(ERROR_NON_FUNCTION,"\080\114\111\109\105\115\101\058\102\105\110\097\108\108\121\067\097\108\108"))local I,F=pack(...)return C:_finally(debug.traceback(nil,2),function()return h(unpack(F,1,I))end)end Promise.prototype.FinallyCall=Promise.prototype.finallyCall

function Promise.prototype:finallyCall(callback, ...)
	assert(type(callback) == "function", string.format(ERROR_NON_FUNCTION, "Promise:finallyCall"))
	local length, values = pack(...)
	return self:_finally(debug.traceback(nil, 2), function()
		return callback(unpack(values, 1, length))
	end)
end
Promise.prototype.FinallyCall = Promise.prototype.finallyCall
