summaryrefslogtreecommitdiffstats
path: root/JavaScriptCore/debugger
diff options
context:
space:
mode:
Diffstat (limited to 'JavaScriptCore/debugger')
-rw-r--r--JavaScriptCore/debugger/DebuggerCallFrame.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/JavaScriptCore/debugger/DebuggerCallFrame.cpp b/JavaScriptCore/debugger/DebuggerCallFrame.cpp
index 05a385d..a734b1d 100644
--- a/JavaScriptCore/debugger/DebuggerCallFrame.cpp
+++ b/JavaScriptCore/debugger/DebuggerCallFrame.cpp
@@ -41,6 +41,9 @@ const UString* DebuggerCallFrame::functionName() const
if (!m_callFrame->codeBlock())
return 0;
+ if (!m_callFrame->callee())
+ return 0;
+
JSFunction* function = asFunction(m_callFrame->callee());
if (!function)
return 0;
@@ -51,7 +54,10 @@ UString DebuggerCallFrame::calculatedFunctionName() const
{
if (!m_callFrame->codeBlock())
return UString();
-
+
+ if (!m_callFrame->callee())
+ return UString();
+
JSFunction* function = asFunction(m_callFrame->callee());
if (!function)
return UString();