| Index: third_party/WebKit/Source/platform/heap/Handle.h
|
| diff --git a/third_party/WebKit/Source/platform/heap/Handle.h b/third_party/WebKit/Source/platform/heap/Handle.h
|
| index 64e43fd71243011277fb2052e26dfe146148b0dc..1c723468434d49f130be1f9c04b6e6c655227fa8 100644
|
| --- a/third_party/WebKit/Source/platform/heap/Handle.h
|
| +++ b/third_party/WebKit/Source/platform/heap/Handle.h
|
| @@ -771,7 +771,11 @@ public:
|
| checkPointer();
|
| }
|
|
|
| - T* get() const { return m_raw; }
|
| + T* get() const
|
| + {
|
| + static_assert(IsFullyDefined<T>::value, "T is not fully defined.");
|
| + return m_raw;
|
| + }
|
|
|
| void clear() { m_raw = nullptr; }
|
|
|
| @@ -779,6 +783,8 @@ public:
|
| protected:
|
| void checkPointer()
|
| {
|
| + static_assert(IsFullyDefined<T>::value, "T is not fully defined.");
|
| +
|
| #if ENABLE(ASSERT) && defined(ADDRESS_SANITIZER)
|
| if (!m_raw)
|
| return;
|
|
|