mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 20:31:59 +00:00
LibWeb: Implement multiple import map support
This commit is contained in:
parent
0a216f9c14
commit
ac6fe2e211
Notes:
github-actions[bot]
2024-12-10 12:02:45 +00:00
Author: https://github.com/shannonbooth
Commit: ac6fe2e211
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2824
Reviewed-by: https://github.com/Lubrsi ✅
19 changed files with 294 additions and 100 deletions
|
@ -73,12 +73,9 @@ void ImportMapParseResult::register_import_map(Window& global)
|
|||
return;
|
||||
}
|
||||
|
||||
// 2. Assert: global's import map is an empty import map.
|
||||
VERIFY(global.import_map().imports().is_empty() && global.import_map().scopes().is_empty());
|
||||
|
||||
// 3. Set global's import map to result's import map.
|
||||
// 2. Merge existing and new import maps, given global and result's import map.
|
||||
VERIFY(m_import_map.has_value());
|
||||
global.set_import_map(m_import_map.value());
|
||||
merge_existing_and_new_import_maps(global, m_import_map.value());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue