Index: src/objects-debug.cc |
diff --git a/src/objects-debug.cc b/src/objects-debug.cc |
index 87383c7257784d276c1d0d34599f7fe9383b6931..5d7949657b743fc8abb5324199f0e628c0fcd5d4 100644 |
--- a/src/objects-debug.cc |
+++ b/src/objects-debug.cc |
@@ -522,6 +522,7 @@ void ConsString::ConsStringVerify() { |
CHECK(this->second() == GetHeap()->empty_string() || |
this->second()->IsString()); |
CHECK(this->length() >= ConsString::kMinLength); |
+ CHECK(this->length() == this->first()->length() + this->second()->length()); |
if (this->IsFlat()) { |
// A flat cons can only be created by String::SlowTryFlatten. |
// Afterwards, the first part may be externalized. |