Index: third_party/WebKit/Source/bindings/core/v8/TraceWrapperMember.h |
diff --git a/third_party/WebKit/Source/bindings/core/v8/TraceWrapperMember.h b/third_party/WebKit/Source/bindings/core/v8/TraceWrapperMember.h |
index eb68310da5a219c165d454c83a5f1c66ab9e6686..090fdde39dec71067752c04da5f7e6fa22564296 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/TraceWrapperMember.h |
+++ b/third_party/WebKit/Source/bindings/core/v8/TraceWrapperMember.h |
@@ -26,7 +26,9 @@ class TraceWrapperMember : public Member<T> { |
public: |
TraceWrapperMember(void* parent, T* raw) : Member<T>(raw), m_parent(parent) { |
#if DCHECK_IS_ON() |
- DCHECK(!m_parent || HeapObjectHeader::fromPayload(m_parent)->checkHeader()); |
+ if (m_parent) { |
+ HeapObjectHeader::fromPayload(m_parent)->checkHeader(); |
+ } |
#endif |
// We don't require a write barrier here as TraceWrapperMember is used for |
// the following scenarios: |