Consolidate tracing and traversing.

This commit is contained in:
wolfbeast 2019-01-18 20:41:42 +01:00 • committed by Roy Tam
commit e015efb999
4 changed files with 38 additions and 16 deletions

View file

@ -133,7 +133,7 @@ nsWrapperCache::CheckCCWrapperTraversal(void* aScriptObjectHolder,
// see through the COM layer, so we use a suppression to help it.
JS::AutoSuppressGCAnalysis suppress;
aTracer->Traverse(aScriptObjectHolder, callback);
aTracer->TraverseNativeAndJS(aScriptObjectHolder, callback);
MOZ_ASSERT(callback.mFound,
"Cycle collection participant didn't traverse to preserved "
"wrapper! This will probably crash.");