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

Unified Diff: src/js/promise.js

Issue 2449053003: [promises] move most of FulfillPromise to c++ (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | src/runtime/runtime.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 2594195c43bf4a85de8adf5242e9606d7630586f..7e0ad4906f798f2b8d36fd3a410e8c8db0637c9e 100644
--- a/src/js/promise.js
+++ b/src/js/promise.js
@@ -143,11 +143,7 @@ function PromiseInit(promise) {
}
function FulfillPromise(promise, status, value, promiseQueue) {
- var tasks = GET_PRIVATE(promise, promiseQueue);
- if (!IS_UNDEFINED(tasks)) {
- var deferred = GET_PRIVATE(promise, promiseDeferredReactionSymbol);
- %EnqueuePromiseReactionJob(value, tasks, deferred, status);
- }
+ %PromiseFulfill(promise, status, value, promiseQueue);
PromiseSet(promise, status, value);
}
« no previous file with comments | « no previous file | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698