Bug 1811939 - Check whether module load request was already cancelled when a load fails r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D167927
This commit is contained in:
Jon Coppeard 2023-01-27 17:19:57 +00:00
parent 859e63e756
commit 15081498f4

View File

@ -175,6 +175,11 @@ void ModuleLoadRequest::LoadFailed() {
LOG(("ScriptLoadRequest (%p): Module load failed", this));
if (IsCanceled()) {
return;
}
MOZ_ASSERT(!IsReadyToRun());
MOZ_ASSERT(!mModuleScript);
Cancel();