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 cb509bd8e9d67614aa3a8429f2b1500eff407ed5..a2a4ce1b6eb8dfae18cacff6a556b0a66754c9d3 100644 |
--- a/src/inspector/v8-stack-trace-impl.cc |
+++ b/src/inspector/v8-stack-trace-impl.cc |
@@ -298,14 +298,9 @@ AsyncStackTrace::AsyncStackTrace( |
std::unique_ptr<protocol::Runtime::StackTrace> |
AsyncStackTrace::buildInspectorObject(AsyncStackTrace* asyncCreation, |
int maxAsyncDepth) const { |
- 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; |
+ return buildInspectorObjectCommon(m_frames, m_description, |
+ m_asyncParent.lock(), |
+ m_asyncCreation.lock(), maxAsyncDepth); |
} |
int AsyncStackTrace::contextGroupId() const { return m_contextGroupId; } |