Index: src/inspector/v8-stack-trace-impl.cc |
diff --git a/src/inspector/v8-stack-trace-impl.cc b/src/inspector/v8-stack-trace-impl.cc |
index a2a4ce1b6eb8dfae18cacff6a556b0a66754c9d3..cb509bd8e9d67614aa3a8429f2b1500eff407ed5 100644 |
--- a/src/inspector/v8-stack-trace-impl.cc |
+++ b/src/inspector/v8-stack-trace-impl.cc |
@@ -298,9 +298,14 @@ |
std::unique_ptr<protocol::Runtime::StackTrace> |
AsyncStackTrace::buildInspectorObject(AsyncStackTrace* asyncCreation, |
int maxAsyncDepth) const { |
- return buildInspectorObjectCommon(m_frames, m_description, |
- m_asyncParent.lock(), |
- m_asyncCreation.lock(), maxAsyncDepth); |
+ std::unique_ptr<protocol::Runtime::StackTrace> stackTrace = |
+ buildInspectorObjectCommon(m_frames, m_description, m_asyncParent.lock(), |
+ m_asyncCreation.lock(), maxAsyncDepth); |
+ if (asyncCreation && !asyncCreation->isEmpty()) { |
+ stackTrace->setPromiseCreationFrame( |
+ asyncCreation->m_frames[0]->buildInspectorObject()); |
+ } |
+ return stackTrace; |
} |
int AsyncStackTrace::contextGroupId() const { return m_contextGroupId; } |