mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 00:29:15 +00:00
LibWeb: Port Stream algorithms from JS::SafeFunction to JS::HeapFunction
This commit is contained in:
parent
e118430648
commit
5f484d200a
Notes:
sideshowbarker
2024-07-17 04:49:48 +09:00
Author: https://github.com/shannonbooth
Commit: 5f484d200a
Pull-request: https://github.com/SerenityOS/serenity/pull/22946
Reviewed-by: https://github.com/trflynn89 ✅
14 changed files with 211 additions and 189 deletions
|
@ -71,7 +71,7 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<WebIDL::Promise>> ReadableStreamDefaultCont
|
|||
reset_queue(*this);
|
||||
|
||||
// 2. Let result be the result of performing this.[[cancelAlgorithm]], passing reason.
|
||||
auto result = (*cancel_algorithm())(reason);
|
||||
auto result = cancel_algorithm()->function()(reason);
|
||||
|
||||
// 3. Perform ! ReadableStreamDefaultControllerClearAlgorithms(this).
|
||||
readable_stream_default_controller_clear_algorithms(*this);
|
||||
|
@ -138,6 +138,9 @@ void ReadableStreamDefaultController::visit_edges(Cell::Visitor& visitor)
|
|||
for (auto const& item : m_queue)
|
||||
visitor.visit(item.value);
|
||||
visitor.visit(m_stream);
|
||||
visitor.visit(m_cancel_algorithm);
|
||||
visitor.visit(m_pull_algorithm);
|
||||
visitor.visit(m_strategy_size_algorithm);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue