File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -340,7 +340,7 @@ static void PrintJavaScriptStack(JSONWriter* writer,
340
340
String::Utf8Value sv (isolate, stackstr);
341
341
ss = std::string (*sv, sv.length ());
342
342
}
343
- int line = ss.find (" \n " );
343
+ int line = ss.find (' \n ' );
344
344
if (line == -1 ) {
345
345
writer->json_keyvalue (" message" , ss);
346
346
writer->json_objectend ();
@@ -349,15 +349,15 @@ static void PrintJavaScriptStack(JSONWriter* writer,
349
349
writer->json_keyvalue (" message" , l);
350
350
writer->json_arraystart (" stack" );
351
351
ss = ss.substr (line + 1 );
352
- line = ss.find (" \n " );
352
+ line = ss.find (' \n ' );
353
353
while (line != -1 ) {
354
354
l = ss.substr (0 , line);
355
355
l.erase (l.begin (), std::find_if (l.begin (), l.end (), [](int ch) {
356
356
return !std::iswspace (ch);
357
357
}));
358
358
writer->json_element (l);
359
359
ss = ss.substr (line + 1 );
360
- line = ss.find (" \n " );
360
+ line = ss.find (' \n ' );
361
361
}
362
362
}
363
363
writer->json_arrayend ();
You can’t perform that action at this time.
0 commit comments