1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 08:07:44 +00:00

LibWeb: Const qualify Web::Streams::ReadableStream::locked

This commit is contained in:
Shannon Booth 2023-06-18 21:34:41 +12:00 committed by Andreas Kling
parent 42c102ecb6
commit 314eeeb9b2
2 changed files with 2 additions and 2 deletions

View file

@ -66,7 +66,7 @@ ReadableStream::ReadableStream(JS::Realm& realm)
ReadableStream::~ReadableStream() = default;
// https://streams.spec.whatwg.org/#rs-locked
bool ReadableStream::locked()
bool ReadableStream::locked() const
{
// 1. Return ! IsReadableStreamLocked(this).
return is_readable_stream_locked(*this);

View file

@ -34,7 +34,7 @@ public:
virtual ~ReadableStream() override;
bool locked();
bool locked() const;
WebIDL::ExceptionOr<JS::GCPtr<JS::Object>> cancel(JS::Value view);
WebIDL::ExceptionOr<ReadableStreamReader> get_reader();