summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/inspector/JavaScriptCallFrame.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/JavaScriptCore/inspector/JavaScriptCallFrame.cpp')
-rw-r--r--Source/JavaScriptCore/inspector/JavaScriptCallFrame.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/Source/JavaScriptCore/inspector/JavaScriptCallFrame.cpp b/Source/JavaScriptCore/inspector/JavaScriptCallFrame.cpp
index f735a8aa6..3c28484ae 100644
--- a/Source/JavaScriptCore/inspector/JavaScriptCallFrame.cpp
+++ b/Source/JavaScriptCore/inspector/JavaScriptCallFrame.cpp
@@ -26,14 +26,12 @@
#include "config.h"
#include "JavaScriptCallFrame.h"
-#if ENABLE(INSPECTOR)
-
using namespace JSC;
namespace Inspector {
-JavaScriptCallFrame::JavaScriptCallFrame(PassRefPtr<DebuggerCallFrame> debuggerCallFrame)
- : m_debuggerCallFrame(debuggerCallFrame)
+JavaScriptCallFrame::JavaScriptCallFrame(Ref<DebuggerCallFrame>&& debuggerCallFrame)
+ : m_debuggerCallFrame(WTFMove(debuggerCallFrame))
{
}
@@ -46,10 +44,9 @@ JavaScriptCallFrame* JavaScriptCallFrame::caller()
if (!debuggerCallerFrame)
return nullptr;
- m_caller = create(debuggerCallerFrame);
+ m_caller = create(debuggerCallerFrame.releaseNonNull());
return m_caller.get();
}
} // namespace Inspector
-#endif // ENABLE(INSPECTOR)