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

Unified Diff: src/js/promise.js

Issue 2599003002: [async-await] Remove call indirection in Create and Reject (Closed)
Patch Set: Remove RejectPromise and empty utils.Export call Created 3 years, 11 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/js/async-await.js ('k') | no next file » | 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 0013c37911425c02d1ae881cfb6d439ce15ac6b0..6dd3268059433cd21e449335ca3c1b3e5a92a256 100644
--- a/src/js/promise.js
+++ b/src/js/promise.js
@@ -36,11 +36,6 @@ function PromiseCreate(parent) {
return %promise_internal_constructor(parent);
}
-// Only used by async-await.js
-function RejectPromise(promise, reason, debugEvent) {
- %PromiseReject(promise, reason, debugEvent);
-}
-
// Export to bindings
function DoRejectPromise(promise, reason) {
%PromiseReject(promise, reason, true);
@@ -174,9 +169,4 @@ utils.InstallFunctions(extrasUtils, 0, [
"markPromiseAsHandled", MarkPromiseAsHandled
]);
-utils.Export(function(to) {
- to.PromiseCreate = PromiseCreate;
- to.RejectPromise = RejectPromise;
-});
-
})
« no previous file with comments | « src/js/async-await.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698