summaryrefslogtreecommitdiffstats
path: root/xpcom/base/nsCycleCollectorTraceJSHelpers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xpcom/base/nsCycleCollectorTraceJSHelpers.cpp')
-rw-r--r--xpcom/base/nsCycleCollectorTraceJSHelpers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xpcom/base/nsCycleCollectorTraceJSHelpers.cpp b/xpcom/base/nsCycleCollectorTraceJSHelpers.cpp
index eb06a389c..7c48002e3 100644
--- a/xpcom/base/nsCycleCollectorTraceJSHelpers.cpp
+++ b/xpcom/base/nsCycleCollectorTraceJSHelpers.cpp
@@ -36,7 +36,7 @@ void
TraceCallbackFunc::Trace(JS::Heap<JS::Value>* aPtr, const char* aName,
void* aClosure) const
{
- if (aPtr->unbarrieredGet().isMarkable()) {
+ if (aPtr->unbarrieredGet().isGCThing()) {
mCallback(JS::GCCellPtr(aPtr->unbarrieredGet()), aName, aClosure);
}
}