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:
Paolo Amadini 2017-06-16 11:07:08 +01:00
parent 960b2e8ec6
commit 6acdd332f0

View File

@ -61,6 +61,9 @@ function defer() {
}
return deferred.promise;
},
catch: function (callback) {
return this.then(null, callback);
}
};