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

Unified Diff: src/isolate.cc

Issue 2487053002: [promises] Remove one runtime call to create_resolving_functions (Closed)
Patch Set: add dcheck Created 4 years, 1 month 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/factory.cc ('k') | src/js/promise.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate.cc
diff --git a/src/isolate.cc b/src/isolate.cc
index b0139a70a68e4fc4f32bdf94c4833cc233087986..abb519eea29ee6d016721784aa882a3459ce7ed0 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -3257,9 +3257,8 @@ void Isolate::RunMicrotasksInternal() {
if (microtask->IsJSFunction()) {
context = Handle<JSFunction>::cast(microtask)->context();
} else if (microtask->IsPromiseResolveThenableJobInfo()) {
- context = Handle<PromiseResolveThenableJobInfo>::cast(microtask)
- ->resolve()
- ->context();
+ context =
+ Handle<PromiseResolveThenableJobInfo>::cast(microtask)->context();
} else {
context = Handle<PromiseReactionJobInfo>::cast(microtask)->context();
}
« no previous file with comments | « src/factory.cc ('k') | src/js/promise.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698