Issue #618 - Add clarifying code comments.

This commit is contained in:
Moonchild
2020-07-01 21:12:49 +00:00
parent ec10b65dde
commit 98752af133
2 changed files with 12 additions and 0 deletions
+4
View File
@@ -420,6 +420,10 @@ ScriptLoader::SetModuleFetchFinishedAndResumeWaitingRequests(ModuleLoadRequest *
{
// Update module map with the result of fetching a single module script. The
// module script pointer is nullptr on error.
//
// If any requests for the same URL are waiting on this one to complete, they
// will have ModuleLoaded or LoadFailed on them when the promise is
// resolved/rejected. This is set up in StartLoad.
MOZ_ASSERT(!aRequest->IsReadyToRun());