Bug 1087330. Make the data structure we use for our promise microtask queue have O(1) first element removal, not O(N). r=khuey
This commit is contained in:
@@ -961,7 +961,7 @@ CycleCollectedJSRuntime::SetPendingException(nsIException* aException)
|
||||
mPendingException = aException;
|
||||
}
|
||||
|
||||
nsTArray<nsCOMPtr<nsIRunnable>>&
|
||||
std::queue<nsCOMPtr<nsIRunnable>>&
|
||||
CycleCollectedJSRuntime::GetPromiseMicroTaskQueue()
|
||||
{
|
||||
return mPromiseMicroTaskQueue;
|
||||
|
||||
Reference in New Issue
Block a user