| Index: Source/platform/heap/HeapAllocator.h
|
| diff --git a/Source/platform/heap/HeapAllocator.h b/Source/platform/heap/HeapAllocator.h
|
| index 92b30ef1169f684c3ce96239ea0cfcbc04c0e366..39a5a0d5d15f0b9537da25308ce070b288850e27 100644
|
| --- a/Source/platform/heap/HeapAllocator.h
|
| +++ b/Source/platform/heap/HeapAllocator.h
|
| @@ -283,7 +283,7 @@ void HeapVectorBacking<T, Traits>::finalize(void* pointer)
|
|
|
| ASSERT(!WTF::IsTriviallyDestructible<T>::value);
|
| HeapObjectHeader* header = HeapObjectHeader::fromPayload(pointer);
|
| - header->checkHeader();
|
| + ASSERT(header->checkHeader());
|
| // Use the payload size as recorded by the heap to determine how many
|
| // elements to finalize.
|
| size_t length = header->payloadSize() / sizeof(T);
|
| @@ -317,7 +317,7 @@ void HeapHashTableBacking<Table>::finalize(void* pointer)
|
| using Value = typename Table::ValueType;
|
| ASSERT(!WTF::IsTriviallyDestructible<Value>::value);
|
| HeapObjectHeader* header = HeapObjectHeader::fromPayload(pointer);
|
| - header->checkHeader();
|
| + ASSERT(header->checkHeader());
|
| // Use the payload size as recorded by the heap to determine how many
|
| // elements to finalize.
|
| size_t length = header->payloadSize() / sizeof(Value);
|
|
|