mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-05 00:56:39 +00:00
LibWeb: Const qualify Web::Streams::ReadableStream::locked
This commit is contained in:
parent
42c102ecb6
commit
314eeeb9b2
Notes:
sideshowbarker
2024-07-17 21:16:31 +09:00
Author: https://github.com/shannonbooth
Commit: 314eeeb9b2
Pull-request: https://github.com/SerenityOS/serenity/pull/19458
Reviewed-by: https://github.com/kennethmyhra
Reviewed-by: https://github.com/mattco98 ✅
2 changed files with 2 additions and 2 deletions
|
@ -66,7 +66,7 @@ ReadableStream::ReadableStream(JS::Realm& realm)
|
||||||
ReadableStream::~ReadableStream() = default;
|
ReadableStream::~ReadableStream() = default;
|
||||||
|
|
||||||
// https://streams.spec.whatwg.org/#rs-locked
|
// https://streams.spec.whatwg.org/#rs-locked
|
||||||
bool ReadableStream::locked()
|
bool ReadableStream::locked() const
|
||||||
{
|
{
|
||||||
// 1. Return ! IsReadableStreamLocked(this).
|
// 1. Return ! IsReadableStreamLocked(this).
|
||||||
return is_readable_stream_locked(*this);
|
return is_readable_stream_locked(*this);
|
||||||
|
|
|
@ -34,7 +34,7 @@ public:
|
||||||
|
|
||||||
virtual ~ReadableStream() override;
|
virtual ~ReadableStream() override;
|
||||||
|
|
||||||
bool locked();
|
bool locked() const;
|
||||||
WebIDL::ExceptionOr<JS::GCPtr<JS::Object>> cancel(JS::Value view);
|
WebIDL::ExceptionOr<JS::GCPtr<JS::Object>> cancel(JS::Value view);
|
||||||
WebIDL::ExceptionOr<ReadableStreamReader> get_reader();
|
WebIDL::ExceptionOr<ReadableStreamReader> get_reader();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue