Bug 1184400, part 3 - Use HasExternalReference in XPCWrappedNative::Traverse. r=bholley

This is just for consistency.
This commit is contained in:
Andrew McCreight 2015-07-16 17:50:43 -07:00
Родитель 52b10c8714
Коммит 7102f1c26b
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -68,7 +68,7 @@ NS_CYCLE_COLLECTION_CLASSNAME(XPCWrappedNative)::Traverse
NS_IMPL_CYCLE_COLLECTION_DESCRIBE(XPCWrappedNative, tmp->mRefCnt.get())
}
if (tmp->mRefCnt.get() > 1) {
if (tmp->HasExternalReference()) {
// If our refcount is > 1, our reference to the flat JS object is
// considered "strong", and we're going to traverse it.