From c33d72bb4127aec27ae3e7751e48a36682a8728c Mon Sep 17 00:00:00 2001 From: Shannon Booth Date: Thu, 16 Jan 2025 12:36:19 +1300 Subject: [PATCH] LibWeb/Fetch: Remove FIXME for since fixed spec bug --- Libraries/LibWeb/Fetch/Body.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Libraries/LibWeb/Fetch/Body.cpp b/Libraries/LibWeb/Fetch/Body.cpp index 36374998156..04c41943b0a 100644 --- a/Libraries/LibWeb/Fetch/Body.cpp +++ b/Libraries/LibWeb/Fetch/Body.cpp @@ -147,10 +147,7 @@ WebIDL::ExceptionOr 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.