Index: third_party/WebKit/Source/platform/wtf/TerminatedArrayBuilder.h |
diff --git a/third_party/WebKit/Source/platform/wtf/TerminatedArrayBuilder.h b/third_party/WebKit/Source/platform/wtf/TerminatedArrayBuilder.h |
index 8b83aca45d7b1ed81af2202f331926085381f488..31e2db7031ff898f403ec472de1b7b8262720ee9 100644 |
--- a/third_party/WebKit/Source/platform/wtf/TerminatedArrayBuilder.h |
+++ b/third_party/WebKit/Source/platform/wtf/TerminatedArrayBuilder.h |
@@ -41,7 +41,7 @@ class TerminatedArrayBuilder { |
} |
void Append(const T& item) { |
- RELEASE_ASSERT(count_ < capacity_); |
+ CHECK_LT(count_, capacity_); |
DCHECK(!item.IsLastInArray()); |
array_->at(count_++) = item; |
if (count_ == capacity_) |
@@ -49,7 +49,7 @@ class TerminatedArrayBuilder { |
} |
typename ArrayType<T>::Allocator::PassPtr Release() { |
- RELEASE_ASSERT(count_ == capacity_); |
+ CHECK_EQ(count_, capacity_); |
AssertValid(); |
return ArrayType<T>::Allocator::Release(array_); |
} |