diff --git a/js/src/jsgc.cpp b/js/src/jsgc.cpp index a0f0fe6134aa..1b4769cd81e1 100644 --- a/js/src/jsgc.cpp +++ b/js/src/jsgc.cpp @@ -4034,7 +4034,7 @@ GCRuntime::markWeakReferences(gcstats::Phase phase) for (CompartmentIterT c(rt); !c.done(); c.next()) { if (c->watchpointMap) markedAny |= c->watchpointMap->markIteratively(&marker); - if (marker.weakMapAction() != ExpandWeakMaps) + if (!marker.isWeakMarkingTracer()) markedAny |= WeakMapBase::markCompartmentIteratively(c, &marker); } markedAny |= Debugger::markAllIteratively(&marker);