| Index: src/inspector/V8DebuggerAgentImpl.cpp
|
| diff --git a/src/inspector/V8DebuggerAgentImpl.cpp b/src/inspector/V8DebuggerAgentImpl.cpp
|
| index 58bcd610c3cdcf163be85753bffea2f7de8b9380..9399cb9624372eb06e3bda579df446a4223cecc1 100644
|
| --- a/src/inspector/V8DebuggerAgentImpl.cpp
|
| +++ b/src/inspector/V8DebuggerAgentImpl.cpp
|
| @@ -1012,9 +1012,12 @@ std::unique_ptr<Array<CallFrame>> V8DebuggerAgentImpl::currentCallFrames(
|
| return Array<CallFrame>::create();
|
| }
|
|
|
| + std::unique_ptr<protocol::Value> protocolValue =
|
| + toProtocolValue(errorString, debuggerContext, objects);
|
| + if (!protocolValue) return Array<CallFrame>::create();
|
| protocol::ErrorSupport errorSupport;
|
| - std::unique_ptr<Array<CallFrame>> callFrames = Array<CallFrame>::parse(
|
| - toProtocolValue(debuggerContext, objects).get(), &errorSupport);
|
| + std::unique_ptr<Array<CallFrame>> callFrames =
|
| + Array<CallFrame>::parse(protocolValue.get(), &errorSupport);
|
| if (hasInternalError(errorString, !callFrames))
|
| return Array<CallFrame>::create();
|
| return callFrames;
|
|
|