function Promise.prototype.done(e,h)assert(h==nil or type(h)=="\102\117\110\099\116\105\111\110"or h.__call~=nill,string.format(ERROR_NON_FUNCTION,"\080\114\111\109\105\115\101\058\100\111\110\101"))return e:_finally(debug.traceback(nil,2),h,true)end

function Promise.prototype:done(finallyHandler)
	assert(
		finallyHandler == nil or type(finallyHandler) == "function" or finallyHandler.__call ~= nill,
		string.format(ERROR_NON_FUNCTION, "Promise:done")
	)
	return self:_finally(debug.traceback(nil, 2), finallyHandler, true)
end
