LibWeb: Remove outdated comment about synchronous body initialization

We now do this step asynchronously.
This commit is contained in:
Timothy Flynn 2024-11-04 16:06:51 +01:00 committed by Andrew Kaster
parent 953fe75271
commit 5cd6d403ca
Notes: github-actions[bot] 2024-12-10 03:04:11 +00:00

View file

@ -135,7 +135,6 @@ WebIDL::ExceptionOr<Infrastructure::BodyWithType> extract_body(JS::Realm& realm,
}));
// 11. If source is a byte sequence, then set action to a step that returns source and length to sources length.
// For now, do it synchronously.
if (source.has<ByteBuffer>()) {
action = [source = MUST(ByteBuffer::copy(source.get<ByteBuffer>()))]() mutable {
return move(source);