mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 17:49:40 +00:00
LibWeb: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR()
This commit is contained in:
parent
d62c0fcbdc
commit
31341b280a
Notes:
sideshowbarker
2024-07-17 21:16:31 +09:00
Author: https://github.com/mattco98
Commit: 31341b280a
Pull-request: https://github.com/SerenityOS/serenity/pull/23878
Issue: https://github.com/SerenityOS/serenity/issues/23805
Reviewed-by: https://github.com/awesomekling
122 changed files with 199 additions and 5 deletions
|
@ -24,6 +24,7 @@
|
|||
namespace Web::Streams {
|
||||
|
||||
JS_DEFINE_ALLOCATOR(ReadableStreamDefaultReader);
|
||||
JS_DEFINE_ALLOCATOR(ReadLoopReadRequest);
|
||||
|
||||
void ReadLoopReadRequest::visit_edges(Visitor& visitor)
|
||||
{
|
||||
|
@ -116,6 +117,7 @@ void ReadLoopReadRequest::on_error(JS::Value error)
|
|||
|
||||
class DefaultReaderReadRequest final : public ReadRequest {
|
||||
JS_CELL(DefaultReaderReadRequest, Cell);
|
||||
JS_DECLARE_ALLOCATOR(DefaultReaderReadRequest);
|
||||
|
||||
public:
|
||||
DefaultReaderReadRequest(JS::Realm& realm, WebIDL::Promise& promise)
|
||||
|
@ -151,6 +153,8 @@ private:
|
|||
JS::NonnullGCPtr<WebIDL::Promise> m_promise;
|
||||
};
|
||||
|
||||
JS_DEFINE_ALLOCATOR(DefaultReaderReadRequest);
|
||||
|
||||
// https://streams.spec.whatwg.org/#default-reader-read
|
||||
WebIDL::ExceptionOr<JS::NonnullGCPtr<JS::Promise>> ReadableStreamDefaultReader::read()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue