Bug 1842798 - Part 1: Remove use of MozPromise to wait for module fetch r=smaug
commit07468c5fe3ace89887ad4abd62ad6b8d3ed5a56e
authorJon Coppeard <jcoppeard@mozilla.com>
Wed, 2 Aug 2023 14:39:33 +0000 (2 14:39 +0000)
committerJon Coppeard <jcoppeard@mozilla.com>
Wed, 2 Aug 2023 14:39:33 +0000 (2 14:39 +0000)
treeadc3085881290730e8bbeaf194be364020dfe536
parent8c758fdfe66e143d2eb08fcb2cca22b18e4c0b47
Bug 1842798 - Part 1: Remove use of MozPromise to wait for module fetch r=smaug

This replaces the promise with a list of module requests that are waiting for a
resource to be fetched. When the fetch completes the waiting requests are
resumed appropriately. This now happens immediately rather tha via dispatching
a runnable.

Differential Revision: https://phabricator.services.mozilla.com/D183272
js/loader/ModuleLoaderBase.cpp
js/loader/ModuleLoaderBase.h