import from UXP: Issue #2452 - Fix getter constness (458f5eb3)

This commit is contained in:
2024-01-18 11:50:00 +08:00
parent d1fa926aa8
commit 7f577e2b3a
2 changed files with 7 additions and 5 deletions
+3 -1
View File
@@ -1421,6 +1421,8 @@ CycleCollectedJSContext::ProcessStableStateQueue()
MOZ_RELEASE_ASSERT(!mDoingStableStates);
mDoingStableStates = true;
// When run, one event can add another event to the mStableStateEvents, as
// such you can't use iterators here.
for (uint32_t i = 0; i < mStableStateEvents.Length(); ++i) {
nsCOMPtr<nsIRunnable> event = mStableStateEvents[i].forget();
event->Run();
@@ -1508,7 +1510,7 @@ CycleCollectedJSContext::AfterProcessMicrotasks()
}
uint32_t
CycleCollectedJSContext::RecursionDepth()
CycleCollectedJSContext::RecursionDepth() const
{
return mOwningThread->RecursionDepth();
}