Skip to content

Commit 1446562

Browse files
committed
Add isAsync method to StackFrame
1 parent 130d1c0 commit 1446562

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Source/JavaScriptCore/runtime/StackFrame.h

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,19 @@ class StackFrame {
9898
return false;
9999
}
100100

101-
bool isAsyncFrameWithoutCodeBlock() const
101+
#if USE(BUN_JSC_ADDITIONS)
102+
bool isAsyncFrame() const
102103
{
103104
if (auto* jsFrame = std::get_if<JSFrameData>(&m_frameData))
104-
return jsFrame->m_isAsyncFrame && !codeBlock();
105+
return jsFrame->m_isAsyncFrame;
105106
return false;
106107
}
108+
#endif
109+
110+
bool isAsyncFrameWithoutCodeBlock() const
111+
{
112+
return isAsyncFrame() && !codeBlock();
113+
}
107114

108115
LineColumn computeLineAndColumn() const;
109116
String functionName(VM&) const;

0 commit comments

Comments
 (0)