Index: src/inspector/v8-console.cc |
diff --git a/src/inspector/v8-console.cc b/src/inspector/v8-console.cc |
index 8824b9fc62cc884e9846b6f64916db148c670305..cfe7fc1532c972d262bab12f022ab729ef66ffeb 100644 |
--- a/src/inspector/v8-console.cc |
+++ b/src/inspector/v8-console.cc |
@@ -366,8 +366,10 @@ void V8Console::countCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
if (!helper.privateMap("V8Console#countMap").ToLocal(&countMap)) return; |
int32_t count = helper.getIntFromMap(countMap, identifier, 0) + 1; |
helper.setIntOnMap(countMap, identifier, count); |
- helper.reportCallWithArgument(ConsoleAPIType::kCount, |
- title + ": " + String16::fromInteger(count)); |
+ String16 countString = String16::fromInteger(count); |
+ helper.reportCallWithArgument( |
+ ConsoleAPIType::kCount, |
+ title.isEmpty() ? countString : (title + ": " + countString)); |
} |
void V8Console::assertCallback( |