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

Unified Diff: src/promise-utils.cc

Issue 2575313002: [promisehook] Implement PromiseHook (Closed)
Patch Set: rebase + add comments Created 4 years 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/promise-utils.h ('k') | src/runtime/runtime.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/promise-utils.cc
diff --git a/src/promise-utils.cc b/src/promise-utils.cc
index 9f4898c46be40b3244515aeff6f2b1c4477c49c9..50f6ba16afdecde3c00dab5fd090f50b5d3ba9eb 100644
--- a/src/promise-utils.cc
+++ b/src/promise-utils.cc
@@ -11,8 +11,8 @@
namespace v8 {
namespace internal {
-JSObject* PromiseUtils::GetPromise(Handle<Context> context) {
- return JSObject::cast(context->get(kPromiseSlot));
+JSPromise* PromiseUtils::GetPromise(Handle<Context> context) {
+ return JSPromise::cast(context->get(kPromiseSlot));
}
Object* PromiseUtils::GetDebugEvent(Handle<Context> context) {
« no previous file with comments | « src/promise-utils.h ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698