Index: src/messages.cc |
diff --git a/src/messages.cc b/src/messages.cc |
index c39f4e684800b7f3266d3202dd89c95f93d888c4..bdfc5180b408804e907528c5e724ec96418d9430 100644 |
--- a/src/messages.cc |
+++ b/src/messages.cc |
@@ -189,8 +189,8 @@ MaybeHandle<String> MessageTemplate::FormatMessage(int template_index, |
Handle<String> args[] = {arg0, arg1, arg2}; |
for (const char* c = template_string; *c != '\0'; c++) { |
if (*c == '%') { |
- builder.AppendString(args[i++]); |
DCHECK(i < arraysize(args)); |
+ builder.AppendString(args[i++]); |
} else { |
builder.AppendCharacter(*c); |
} |