LibWeb/Fetch: Remove FIXME for since fixed spec bug

This commit is contained in:
Shannon Booth 2025-01-16 12:36:19 +13:00 committed by Tim Ledbetter
parent 3d20587911
commit c33d72bb41
Notes: github-actions[bot] 2025-01-16 01:17:45 +00:00

View file

@ -147,10 +147,7 @@ WebIDL::ExceptionOr<JS::Value> package_data(JS::Realm& realm, ByteBuffer bytes,
// 1. Let entries be the result of parsing bytes.
auto entries = DOMURL::url_decode(StringView { bytes });
// 2. If entries is failure, then throw a TypeError.
// FIXME: Spec bug? It doesn't seem possible to throw an error here.
// 3. Return a new FormData object whose entry list is entries.
// 2. Return a new FormData object whose entry list is entries.
return TRY(XHR::FormData::create(realm, entries));
}
// Otherwise, throw a TypeError.