1
Fork 0
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:
Matthew Olsson 2023-04-25 18:29:13 -07:00 committed by Andreas Kling
parent 9ee64b5694
commit 2b269d4a49
3 changed files with 12 additions and 3 deletions

View file

@ -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;
};
}