Index: Source/platform/heap/ThreadState.h |
diff --git a/Source/platform/heap/ThreadState.h b/Source/platform/heap/ThreadState.h |
index ebc8c8e617e059188ae68fc4e84e4a82c5e265f6..00d9f2c000fc75a5a4a5528da5e607ea1a00c471 100644 |
--- a/Source/platform/heap/ThreadState.h |
+++ b/Source/platform/heap/ThreadState.h |
@@ -543,8 +543,8 @@ public: |
template<typename T> |
void unregisterPreFinalizer(T& target) |
{ |
+ static_assert(sizeof(&T::invokePreFinalizer) > 0, "Declaration of USING_PRE_FINALIZER()'s prefinalizer trampoline not in scope."); |
checkThread(); |
- ASSERT(&T::invokePreFinalizer); |
unregisterPreFinalizerInternal(&target); |
} |