@@ -66,7 +66,7 @@ std::string MapToString(const std::map<std::string, std::string> object) {
66
66
json << name_value.second << " \" " ;
67
67
first = false ;
68
68
}
69
- json << " \n } ]" ;
69
+ json << " \n } ]\n\n " ;
70
70
return json.str ();
71
71
}
72
72
@@ -219,7 +219,7 @@ class AgentImpl {
219
219
void WaitForFrontendMessage ();
220
220
void NotifyMessageReceived ();
221
221
State ToState (State state);
222
- void SendTargentsListResponse (InspectorSocket* socket);
222
+ void SendListResponse (InspectorSocket* socket);
223
223
bool RespondToGet (InspectorSocket* socket, const std::string& path);
224
224
225
225
uv_sem_t start_sem_;
@@ -639,7 +639,7 @@ void AgentImpl::OnRemoteDataIO(InspectorSocket* socket,
639
639
}
640
640
}
641
641
642
- void AgentImpl::SendTargentsListResponse (InspectorSocket* socket) {
642
+ void AgentImpl::SendListResponse (InspectorSocket* socket) {
643
643
std::map<std::string, std::string> response;
644
644
response[" description" ] = " node.js instance" ;
645
645
response[" faviconUrl" ] = " https://nodejs.org/static/favicon.ico" ;
@@ -673,7 +673,7 @@ bool AgentImpl::RespondToGet(InspectorSocket* socket, const std::string& path) {
673
673
return false ;
674
674
675
675
if (match_path_segment (command, " list" ) || command[0 ] == ' \0 ' ) {
676
- SendTargentsListResponse (socket);
676
+ SendListResponse (socket);
677
677
return true ;
678
678
} else if (match_path_segment (command, " protocol" )) {
679
679
SendProtocolJson (socket);
0 commit comments