LibWeb: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR()

This commit is contained in:
Matthew Olsson 2024-04-06 10:16:04 -07:00 committed by Andreas Kling
commit 31341b280a
Notes: sideshowbarker 2024-07-17 21:16:31 +09:00
122 changed files with 199 additions and 5 deletions

View file

@ -62,6 +62,7 @@ void ReadableStreamBYOBReader::visit_edges(Cell::Visitor& visitor)
class BYOBReaderReadIntoRequest : public ReadIntoRequest {
JS_CELL(BYOBReaderReadIntoRequest, ReadIntoRequest);
JS_DECLARE_ALLOCATOR(BYOBReaderReadIntoRequest);
public:
BYOBReaderReadIntoRequest(JS::Realm& realm, WebIDL::Promise& promise)
@ -103,6 +104,8 @@ private:
JS::NonnullGCPtr<WebIDL::Promise> m_promise;
};
JS_DEFINE_ALLOCATOR(BYOBReaderReadIntoRequest);
// https://streams.spec.whatwg.org/#byob-reader-read
WebIDL::ExceptionOr<JS::NonnullGCPtr<JS::Promise>> ReadableStreamBYOBReader::read(JS::Handle<WebIDL::ArrayBufferView>& view)
{