Index: src/conversions.cc |
diff --git a/src/conversions.cc b/src/conversions.cc |
index 31e8b1b01a5496c50d9086b21a50cf26a637d737..82a521bd90844775746707cd529f5535ebb912a7 100644 |
--- a/src/conversions.cc |
+++ b/src/conversions.cc |
@@ -509,7 +509,7 @@ bool IsNonArrayIndexInteger(String* string) { |
uint16_t buffer[kBufferSize]; |
int offset = 0; |
const int length = string->length(); |
- DCHECK_NE(0, length); |
+ if (length == 0) return false; |
// First iteration, check for minus, 0 followed by anything else, etc. |
int to = std::min(offset + kUint32MaxChars, length); |
{ |