diff options
author | Moonchild <moonchild@palemoon.org> | 2020-07-01 21:12:49 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-07-01 21:12:49 +0000 |
commit | 0d51f7c38ba49e42c7832df8f353a89483f1ac94 (patch) | |
tree | 71264c20b8ee2d37472a18dae9d36902d558e5cc /dom/script/ScriptLoader.cpp | |
parent | 2d8029c6e77dc5e18fdd9cfc92ce6c41c761e53f (diff) | |
download | uxp-0d51f7c38ba49e42c7832df8f353a89483f1ac94.tar.gz |
Issue mcp-graveyard/UXP#618 - Add clarifying code comments.
Diffstat (limited to 'dom/script/ScriptLoader.cpp')
-rw-r--r-- | dom/script/ScriptLoader.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/dom/script/ScriptLoader.cpp b/dom/script/ScriptLoader.cpp index ffbe37f281..7aca04da5c 100644 --- a/dom/script/ScriptLoader.cpp +++ b/dom/script/ScriptLoader.cpp @@ -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()); |