mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Bug 1362970 - Part 1 - Add support for "catch" to "deprecated-sync-thenables". r=florian
MozReview-Commit-ID: BDuYbXNXRdD --HG-- extra : rebase_source : 5601ac092418c81701ba64d23b368b526c95da37 extra : source : 6435ce97453176775a6dda71710f2c47063bc286
This commit is contained in:
parent
960b2e8ec6
commit
6acdd332f0
@ -61,6 +61,9 @@ function defer() {
|
||||
}
|
||||
|
||||
return deferred.promise;
|
||||
},
|
||||
catch: function (callback) {
|
||||
return this.then(null, callback);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user