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:
parent
eba466b8e7
commit
8274906301
2 changed files with 13 additions and 11 deletions
|
@ -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&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue