Index: src/js/promise.js |
diff --git a/src/js/promise.js b/src/js/promise.js |
index 41d106bdefeecf8d517e3f4e6104e1d0ba0e4893..9bf378025f48504f8e25e65923e5344846138391 100644 |
--- a/src/js/promise.js |
+++ b/src/js/promise.js |
@@ -142,12 +142,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 |
@@ -345,10 +339,7 @@ utils.InstallFunctions(GlobalPromise, DONT_ENUM, [ |
"resolve", PromiseResolve |
]); |
-%SetCode(GlobalPromise.prototype.catch, PromiseCatch); |
- |
%InstallToContext([ |
- "promise_catch", GlobalPromise.prototype.catch, |
"promise_create", PromiseCreate, |
"promise_has_user_defined_reject_handler", PromiseHasUserDefinedRejectHandler, |
"promise_reject", DoRejectPromise, |