mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibWeb: Use ArrayBufferView in ReadableStreamBYOBRequest
This commit is contained in:
parent
4893dfdc57
commit
a9a3dcd952
Notes:
sideshowbarker
2024-07-17 07:25:39 +09:00
Author: https://github.com/shannonbooth
Commit: a9a3dcd952
Pull-request: https://github.com/SerenityOS/serenity/pull/22124
3 changed files with 8 additions and 6 deletions
|
@ -1,18 +1,20 @@
|
|||
/*
|
||||
* Copyright (c) 2023, Matthew Olsson <mattco@serenityos.org>
|
||||
* Copyright (c) 2023, Shannon Booth <shannon@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <LibWeb/Streams/ReadableByteStreamController.h>
|
||||
#include <LibWeb/Streams/ReadableStreamBYOBRequest.h>
|
||||
#include <LibWeb/WebIDL/Buffers.h>
|
||||
|
||||
namespace Web::Streams {
|
||||
|
||||
JS_DEFINE_ALLOCATOR(ReadableStreamBYOBRequest);
|
||||
|
||||
// https://streams.spec.whatwg.org/#rs-byob-request-view
|
||||
JS::GCPtr<JS::TypedArrayBase> ReadableStreamBYOBRequest::view()
|
||||
JS::GCPtr<WebIDL::ArrayBufferView> ReadableStreamBYOBRequest::view()
|
||||
{
|
||||
// 1. Return this.[[view]].
|
||||
return m_view;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue