1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:57:45 +00:00

LibWeb: Expose ReadableStream::m_state and use in AOs

This allows us to be a bit closer to the spec phrasing and matches
what we do with WritableStream
This commit is contained in:
Matthew Olsson 2023-04-09 09:42:03 -07:00 committed by Linus Groh
parent eba466b8e7
commit 8274906301
2 changed files with 13 additions and 11 deletions

View file

@ -56,7 +56,9 @@ public:
bool is_closed() const;
bool is_errored() const;
bool is_locked() const;
void set_stream_state(State value) { m_state = value; }
State state() const { return m_state; }
void set_state(State value) { m_state = value; }
private:
explicit ReadableStream(JS::Realm&);