LibWeb: Set import map scopes when parsing

This commit is contained in:
Jamie Mansfield 2024-06-01 10:20:25 +01:00 committed by Tim Flynn
parent 8b7ad09a07
commit 76eb7568c9
Notes: sideshowbarker 2024-07-18 00:41:35 +09:00

View file

@ -71,6 +71,7 @@ WebIDL::ExceptionOr<ImportMap> parse_import_map_string(JS::Realm& realm, ByteStr
// 8. Return an import map whose imports are sortedAndNormalizedImports and whose scopes are sortedAndNormalizedScopes.
ImportMap import_map;
import_map.set_imports(sorted_and_normalised_imports);
import_map.set_scopes(sorted_and_normalised_scopes);
return import_map;
}