Skip to content

Commit

Permalink
LibWeb/Fetch: Remove FIXME for since fixed spec bug
Browse files Browse the repository at this point in the history
  • Loading branch information
shannonbooth authored and tcl3 committed Jan 16, 2025
1 parent 3d20587 commit c33d72b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Libraries/LibWeb/Fetch/Body.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c33d72b

Please sign in to comment.