Index: src/js/promise.js |
diff --git a/src/js/promise.js b/src/js/promise.js |
index 7cd789295644f8be560f8c85346fd9c279720024..8ff601bbbbb392acc2115b6973dcbf285abd3da2 100644 |
--- a/src/js/promise.js |
+++ b/src/js/promise.js |
@@ -150,12 +150,6 @@ function PromiseReject(r) { |
} |
} |
-// ES#sec-promise.prototype.catch |
-// Promise.prototype.catch ( onRejected ) |
-function PromiseCatch(onReject) { |
- return this.then(UNDEFINED, onReject); |
-} |
- |
// Combinators. |
// ES#sec-promise.resolve |
@@ -360,10 +354,7 @@ utils.InstallFunctions(GlobalPromise, DONT_ENUM, [ |
utils.InstallGetter(GlobalPromise, speciesSymbol, PromiseSpecies); |
-%SetCode(GlobalPromise.prototype.catch, PromiseCatch); |
- |
%InstallToContext([ |
- "promise_catch", GlobalPromise.prototype.catch, |
"promise_create", PromiseCreate, |
"promise_has_user_defined_reject_handler", PromiseHasUserDefinedRejectHandler, |
"promise_reject", DoRejectPromise, |