/* * Copyright (c) 2023, Matthew Olsson * * SPDX-License-Identifier: BSD-2-Clause */ #include #include namespace Web::Streams { // https://streams.spec.whatwg.org/#rs-byob-request-view JS::GCPtr ReadableStreamBYOBRequest::view() { // 1. Return this.[[view]]. return m_view; } ReadableStreamBYOBRequest::ReadableStreamBYOBRequest(JS::Realm& realm) : Bindings::PlatformObject(realm) { } void ReadableStreamBYOBRequest::visit_edges(Cell::Visitor& visitor) { Base::visit_edges(visitor); visitor.visit(m_controller); visitor.visit(m_view); } }