mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:18:12 +00:00
LibWeb: Fix typo in BodyInitOrReadableBytes type alias
This commit is contained in:
parent
00326a63ed
commit
a2a4ad3b9d
3 changed files with 11 additions and 11 deletions
|
@ -14,7 +14,7 @@
|
|||
namespace Web::Fetch {
|
||||
|
||||
// https://fetch.spec.whatwg.org/#bodyinit-safely-extract
|
||||
WebIDL::ExceptionOr<Infrastructure::BodyWithType> safely_extract_body(JS::Realm& realm, BodyInitOrReadbleBytes const& object)
|
||||
WebIDL::ExceptionOr<Infrastructure::BodyWithType> safely_extract_body(JS::Realm& realm, BodyInitOrReadableBytes const& object)
|
||||
{
|
||||
// 1. If object is a ReadableStream object, then:
|
||||
if (auto const* stream = object.get_pointer<JS::Handle<Streams::ReadableStream>>()) {
|
||||
|
@ -27,7 +27,7 @@ WebIDL::ExceptionOr<Infrastructure::BodyWithType> safely_extract_body(JS::Realm&
|
|||
}
|
||||
|
||||
// https://fetch.spec.whatwg.org/#concept-bodyinit-extract
|
||||
WebIDL::ExceptionOr<Infrastructure::BodyWithType> extract_body(JS::Realm& realm, BodyInitOrReadbleBytes const& object, bool keepalive)
|
||||
WebIDL::ExceptionOr<Infrastructure::BodyWithType> extract_body(JS::Realm& realm, BodyInitOrReadableBytes const& object, bool keepalive)
|
||||
{
|
||||
// 1. Let stream be null.
|
||||
JS::GCPtr<Streams::ReadableStream> stream;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue