Index: src/debug-agent.cc |
diff --git a/src/debug-agent.cc b/src/debug-agent.cc |
index 12c8931ef154cabecd7d85e891ff7c05bc095b14..e85622277591491c41e13b69a47522e981c2ba3e 100644 |
--- a/src/debug-agent.cc |
+++ b/src/debug-agent.cc |
@@ -399,7 +399,7 @@ bool DebuggerAgentUtil::SendMessage(const Socket* conn, |
uint16_t character = message[i]; |
buffer_position += |
unibrow::Utf8::Encode(buffer + buffer_position, character, previous); |
- ASSERT(buffer_position < kBufferSize); |
+ ASSERT(buffer_position <= kBufferSize); |
// Send buffer if full or last character is encoded. |
if (kBufferSize - buffer_position < |