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
commit 8274906301
Notes: sideshowbarker 2024-07-17 01:10:58 +09:00
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&);