Promise instances are adorned with success() and error() functions to retain backwards compatibility.