Index: src/objects-debug.cc |
diff --git a/src/objects-debug.cc b/src/objects-debug.cc |
index 4dcdb5dd1f173923ab9f4290ace46be8d65b8d58..bc60bbaabdde53fe9fa310bc541c0407feb2d538 100644 |
--- a/src/objects-debug.cc |
+++ b/src/objects-debug.cc |
@@ -552,6 +552,7 @@ void JSMessageObject::JSMessageObjectVerify() { |
void String::StringVerify() { |
CHECK(IsString()); |
CHECK(length() >= 0 && length() <= Smi::kMaxValue); |
+ CHECK_IMPLIES(length() == 0, this == GetHeap()->empty_string()); |
if (IsInternalizedString()) { |
CHECK(!GetHeap()->InNewSpace(this)); |
} |