Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 34c3f2da0b35402d4bc14f1cdcdbc9377d1a0803..7ba756ed2ebcf7e19897667f0d6a26c61242c08c 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -6828,9 +6828,8 @@ uint32_t IteratingStringHasher::Hash(String* string, uint32_t seed) { |
// Nothing to do. |
if (hasher.has_trivial_hash()) return hasher.GetHashField(); |
ConsString* cons_string = String::VisitFlat(&hasher, string); |
- if (cons_string != nullptr) { |
- hasher.VisitConsString(cons_string); |
- } |
+ if (cons_string == nullptr) return hasher.GetHashField(); |
+ hasher.VisitConsString(cons_string); |
return hasher.GetHashField(); |
} |