| Index: src/inspector/v8-debugger-agent-impl.cc
|
| diff --git a/src/inspector/v8-debugger-agent-impl.cc b/src/inspector/v8-debugger-agent-impl.cc
|
| index 75a7a3fe8e8b372497945cfd106439812960618e..5279b051396af1434028e8ad2493443d768d006b 100644
|
| --- a/src/inspector/v8-debugger-agent-impl.cc
|
| +++ b/src/inspector/v8-debugger-agent-impl.cc
|
| @@ -746,18 +746,8 @@ void V8DebuggerAgentImpl::scheduleStepIntoAsync(
|
| callback->sendFailure(Response::Error(kDebuggerNotPaused));
|
| return;
|
| }
|
| - if (m_stepIntoAsyncCallback) {
|
| - m_stepIntoAsyncCallback->sendFailure(Response::Error(
|
| - "Current scheduled step into async was overriden with new one."));
|
| - }
|
| - m_stepIntoAsyncCallback = std::move(callback);
|
| -}
|
| -
|
| -bool V8DebuggerAgentImpl::shouldBreakInScheduledAsyncTask() {
|
| - if (!m_stepIntoAsyncCallback) return false;
|
| - m_stepIntoAsyncCallback->sendSuccess();
|
| - m_stepIntoAsyncCallback.reset();
|
| - return true;
|
| + m_debugger->scheduleStepIntoAsync(std::move(callback),
|
| + m_session->contextGroupId());
|
| }
|
|
|
| Response V8DebuggerAgentImpl::setPauseOnExceptions(
|
| @@ -1230,12 +1220,6 @@ void V8DebuggerAgentImpl::didPause(int contextId,
|
| breakAuxData->setArray("reasons", std::move(reasons));
|
| }
|
|
|
| - if (m_stepIntoAsyncCallback) {
|
| - m_stepIntoAsyncCallback->sendFailure(
|
| - Response::Error("No async tasks were scheduled before pause."));
|
| - m_stepIntoAsyncCallback.reset();
|
| - }
|
| -
|
| std::unique_ptr<Array<CallFrame>> protocolCallFrames;
|
| Response response = currentCallFrames(&protocolCallFrames);
|
| if (!response.isSuccess()) protocolCallFrames = Array<CallFrame>::create();
|
|
|