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:
Boris Zbarsky
2015-05-01 22:33:01 -04:00
parent ee0a33d085
commit a97eec0c4d
3 changed files with 12 additions and 10 deletions

View File

@@ -961,7 +961,7 @@ CycleCollectedJSRuntime::SetPendingException(nsIException* aException)
mPendingException = aException;
}
nsTArray<nsCOMPtr<nsIRunnable>>&
std::queue<nsCOMPtr<nsIRunnable>>&
CycleCollectedJSRuntime::GetPromiseMicroTaskQueue()
{
return mPromiseMicroTaskQueue;