Bug 1800641 - Part 8: Add LoadContextBase* parameter to ScriptLoadRequest methods which is going to be moved to LoadedScriptDelegate. r=nbp

Depends on D197845

Differential Revision: https://phabricator.services.mozilla.com/D197846
This commit is contained in:
Tooru Fujisawa
2024-01-08 14:57:38 +00:00
parent 9b4d6d328e
commit ad3f8f8a06
12 changed files with 25 additions and 16 deletions

View File

@@ -1301,7 +1301,8 @@ UniquePtr<ImportMap> ModuleLoaderBase::ParseImportMap(
MOZ_ASSERT(aRequest->IsTextSource());
MaybeSourceText maybeSource;
nsresult rv = aRequest->GetScriptSource(jsapi.cx(), &maybeSource);
nsresult rv = aRequest->GetScriptSource(jsapi.cx(), &maybeSource,
aRequest->mLoadContext.get());
if (NS_FAILED(rv)) {
return nullptr;
}