Skip to content

Commit c8fbc72

Browse files
authored
修复在shipping下ios18.4sdk在使用std::string append(+=)崩溃的问题 (Tencent#2150)
修复在shipping下ios18.4sdk在使用std::string append(+=)崩溃的问题
1 parent 94a0bff commit c8fbc72

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

unreal/Puerts/Source/JsEnv/Private/V8InspectorImpl.cpp

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -332,16 +332,15 @@ V8InspectorClientImpl::V8InspectorClientImpl(int32_t InPort, v8::Local<v8::Conte
332332
"Protocol-Version": "1.1"
333333
})";
334334

335-
JSONList = R"([{
336-
"description": "Puerts Inspector",
337-
"id": "0",
338-
"title": "Puerts Inspector",
339-
"type": "node",
340-
)";
341-
JSONList += "\"webSocketDebuggerUrl\"";
342-
JSONList += ":";
343-
JSONList += "\"ws://127.0.0.1:";
344-
JSONList += std::to_string(Port) + "\"\r\n}]";
335+
JSONList = R"([
336+
{
337+
"description": "Puerts Inspector",
338+
"id": "0",
339+
"title": "Puerts Inspector",
340+
"type": "node",
341+
"webSocketDebuggerUrl": "ws://127.0.0.1:)" + std::to_string(Port) + R"("
342+
}
343+
])";
345344

346345
IsAlive = true;
347346

0 commit comments

Comments
 (0)