Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index 6295788f0af9a2f4d1e772143ff684362b568d75..7a8f8668fa5dc330d47967da3a09e977de14eb3e 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -3011,7 +3011,7 @@ MaybeObject* Heap::AllocateSubString(String* buffer, |
int end, |
PretenureFlag pretenure) { |
int length = end - start; |
- if (length == 0) { |
+ if (length <= 0) { |
return empty_string(); |
} else if (length == 1) { |
return LookupSingleCharacterStringFromCode(buffer->Get(start)); |