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) { |