mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-02 00:13:02 +00:00
LibWeb: Don't warn when 'scopes' is present in import maps
Another mistake I made when implementing import map support.
This commit is contained in:
parent
76eb7568c9
commit
e13b9bef5c
Notes:
sideshowbarker
2024-07-17 05:03:11 +09:00
Author: https://github.com/jamierocks
Commit: e13b9bef5c
Pull-request: https://github.com/SerenityOS/serenity/pull/24509
Reviewed-by: https://github.com/kennethmyhra ✅
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ WebIDL::ExceptionOr<ImportMap> parse_import_map_string(JS::Realm& realm, ByteStr
|
|||
|
||||
// 7. If parsed's keys contains any items besides "imports" or "scopes", then the user agent should report a warning to the console indicating that an invalid top-level key was present in the import map.
|
||||
for (auto& key : parsed_object.shape().property_table().keys()) {
|
||||
if (key.as_string() == "imports" || key.as_string() == "imports")
|
||||
if (key.as_string().is_one_of("imports", "scopes"))
|
||||
continue;
|
||||
|
||||
auto& console = realm.intrinsics().console_object()->console();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue