Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(361)

Unified Diff: src/js/promise.js

Issue 2695593002: [promises] cleanup default promise handlers (Closed)
Patch Set: remove unused var Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/isolate.cc ('k') | src/objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/promise.js
diff --git a/src/js/promise.js b/src/js/promise.js
index 95ab793591c04e3f2c3932a89b85f2742842cadf..27571daabbefe3d142701587b13f4ed6f6c1f36f 100644
--- a/src/js/promise.js
+++ b/src/js/promise.js
@@ -19,14 +19,6 @@ var promiseForwardingHandlerSymbol =
var GlobalPromise = global.Promise;
// -------------------------------------------------------------------
-
-// Core functionality.
-
-function PromiseIdResolveHandler(x) { return x; }
-function PromiseIdRejectHandler(r) { %_ReThrow(r); }
-SET_PRIVATE(PromiseIdRejectHandler, promiseForwardingHandlerSymbol, true);
-
-// -------------------------------------------------------------------
// Define exported functions.
// Combinators.
@@ -137,9 +129,4 @@ utils.InstallFunctions(GlobalPromise, DONT_ENUM, [
"race", PromiseRace,
]);
-%InstallToContext([
- "promise_id_resolve_handler", PromiseIdResolveHandler,
- "promise_id_reject_handler", PromiseIdRejectHandler
-]);
-
})
« no previous file with comments | « src/isolate.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698