mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:07:34 +00:00
LibWeb: Fix a blatant nullptr dereference in ReadableStreamGenericReader
This commit is contained in:
parent
9ee64b5694
commit
2b269d4a49
3 changed files with 12 additions and 3 deletions
|
@ -32,6 +32,8 @@ public:
|
|||
virtual bool is_default_reader() const { return false; }
|
||||
|
||||
protected:
|
||||
explicit ReadableStreamGenericReaderMixin(JS::Realm&);
|
||||
|
||||
void visit_edges(JS::Cell::Visitor&);
|
||||
|
||||
// https://streams.spec.whatwg.org/#readablestreamgenericreader-closedpromise
|
||||
|
@ -41,6 +43,8 @@ protected:
|
|||
// https://streams.spec.whatwg.org/#readablestreamgenericreader-stream
|
||||
// A ReadableStream instance that owns this reader
|
||||
JS::GCPtr<ReadableStream> m_stream;
|
||||
|
||||
JS::Realm& m_realm;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue