Skip to content
This repository was archived by the owner on Nov 12, 2022. It is now read-only.

Commit d0b0f5a

Browse files
committed
JS::AddServoSizeOf takes a cx instead of rt now, so CollectServoSizes should too
1 parent 6ebd611 commit d0b0f5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/jsglue.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -728,10 +728,10 @@ static size_t MallocSizeOf(const void* aPtr)
728728
}
729729

730730
bool
731-
CollectServoSizes(JSRuntime *rt, JS::ServoSizes *sizes)
731+
CollectServoSizes(JSContext* cx, JS::ServoSizes *sizes)
732732
{
733733
mozilla::PodZero(sizes);
734-
return JS::AddServoSizeOf(rt, MallocSizeOf,
734+
return JS::AddServoSizeOf(cx, MallocSizeOf,
735735
/* ObjectPrivateVisitor = */ nullptr, sizes);
736736
}
737737

0 commit comments

Comments
 (0)