From 76eb7568c9b15de0d28ea1dd4edbdabce2544539 Mon Sep 17 00:00:00 2001 From: Jamie Mansfield Date: Sat, 1 Jun 2024 10:20:25 +0100 Subject: [PATCH] LibWeb: Set import map scopes when parsing --- Userland/Libraries/LibWeb/HTML/Scripting/ImportMap.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Libraries/LibWeb/HTML/Scripting/ImportMap.cpp b/Userland/Libraries/LibWeb/HTML/Scripting/ImportMap.cpp index f5334f484bb..34d0fd5f4dd 100644 --- a/Userland/Libraries/LibWeb/HTML/Scripting/ImportMap.cpp +++ b/Userland/Libraries/LibWeb/HTML/Scripting/ImportMap.cpp @@ -71,6 +71,7 @@ WebIDL::ExceptionOr 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; }