Index: third_party/WebKit/Source/platform/heap/ThreadState.cpp |
diff --git a/third_party/WebKit/Source/platform/heap/ThreadState.cpp b/third_party/WebKit/Source/platform/heap/ThreadState.cpp |
index 60939a77881ebddff143d09cb22abb5f1fae9553..a2343f11928dce1ca6f14e699c2344d868c944f5 100644 |
--- a/third_party/WebKit/Source/platform/heap/ThreadState.cpp |
+++ b/third_party/WebKit/Source/platform/heap/ThreadState.cpp |
@@ -1007,7 +1007,7 @@ void ThreadState::makeConsistentForMutator() |
void ThreadState::preGC() |
{ |
- if (RuntimeEnabledFeatures::traceWrappablesEnabled() && m_performCleanup) |
+ if (RuntimeEnabledFeatures::traceWrappablesEnabled() && m_isolate && m_performCleanup) |
m_performCleanup(m_isolate); |
ASSERT(!isInGC()); |