We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a707fd commit 1c46db3Copy full SHA for 1c46db3
src/hello.js
@@ -936,7 +936,8 @@ hello.utils.extend(hello.utils, {
936
937
/* provide optional information-hiding proxy */
938
this.proxy = {
939
- then: this.then.bind(this)
+ then: this.then.bind(this),
940
+ catch: this.catch.bind(this)
941
};
942
943
/* support optional executor function */
@@ -960,6 +961,9 @@ hello.utils.extend(hello.utils, {
960
961
resolver(onRejected, next, "reject" )); /* [Promises/A+ 2.2.3/2.2.6] */
962
execute(curr);
963
return next.proxy; /* [Promises/A+ 2.2.7, 3.3] */
964
+ },
965
+ catch: function(onRejected) {
966
+ return this.then(null, onRejected);
967
}
968
969
0 commit comments