diff options
author | Moonchild <moonchild@palemoon.org> | 2020-07-01 21:12:49 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-07-10 18:29:22 +0000 |
commit | ab0501702637f3448ec16a188a050e5b9f688787 (patch) | |
tree | 2117e2a651d677a90e632ce116374bcc66b2fc95 /dom/script/ScriptLoader.cpp | |
parent | 255c7f6f3aab6c82912e9ea7450f1a69bf17f848 (diff) | |
download | UXP-ab0501702637f3448ec16a188a050e5b9f688787.tar UXP-ab0501702637f3448ec16a188a050e5b9f688787.tar.gz UXP-ab0501702637f3448ec16a188a050e5b9f688787.tar.lz UXP-ab0501702637f3448ec16a188a050e5b9f688787.tar.xz UXP-ab0501702637f3448ec16a188a050e5b9f688787.zip |
Issue #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 ffbe37f28..7aca04da5 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()); |