LibJS: Add missing spec prose to FinishLoadingImportedModule

This commit is contained in:
Timothy Flynn 2025-01-20 11:13:23 -05:00 committed by Andreas Kling
parent fc20e61e72
commit 263fd9b7c6
Notes: github-actions[bot] 2025-01-21 14:00:06 +00:00

View file

@ -106,11 +106,12 @@ void finish_loading_imported_module(ImportedModuleReferrer referrer, ModuleReque
}
}
// 2. If payload is a GraphLoadingState Record, then
if (payload.has<GC::Ref<GraphLoadingState>>()) {
// a. Perform ContinueModuleLoading(payload, result)
continue_module_loading(payload.get<GC::Ref<GraphLoadingState>>(), result);
}
// Else,
// 3. Else,
else {
// a. Perform ContinueDynamicImport(payload, result).
continue_dynamic_import(payload.get<GC::Ref<PromiseCapability>>(), result);