Loading lib/rp.js +9 −0 Original line number Original line Diff line number Diff line Loading @@ -128,6 +128,15 @@ request.Request.prototype.catch = function RP$catch(onRejected) { return this._rp_promise.catch.apply(this._rp_promise, arguments); return this._rp_promise.catch.apply(this._rp_promise, arguments); }; }; request.Request.prototype.finally = function RP$finally() { markPromiseInUse(this); return this._rp_promise.finally.apply(this._rp_promise); }; request.Request.prototype.caught = request.Request.prototype.catch; request.Request.prototype.lastly = request.Request.prototype.finally; request.Request.prototype.promise = function RP$promise() { request.Request.prototype.promise = function RP$promise() { markPromiseInUse(this); markPromiseInUse(this); return this._rp_promise; return this._rp_promise; Loading Loading
lib/rp.js +9 −0 Original line number Original line Diff line number Diff line Loading @@ -128,6 +128,15 @@ request.Request.prototype.catch = function RP$catch(onRejected) { return this._rp_promise.catch.apply(this._rp_promise, arguments); return this._rp_promise.catch.apply(this._rp_promise, arguments); }; }; request.Request.prototype.finally = function RP$finally() { markPromiseInUse(this); return this._rp_promise.finally.apply(this._rp_promise); }; request.Request.prototype.caught = request.Request.prototype.catch; request.Request.prototype.lastly = request.Request.prototype.finally; request.Request.prototype.promise = function RP$promise() { request.Request.prototype.promise = function RP$promise() { markPromiseInUse(this); markPromiseInUse(this); return this._rp_promise; return this._rp_promise; Loading