mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:48:10 +00:00
LibWeb: Port Stream algorithms from JS::SafeFunction to JS::HeapFunction
This commit is contained in:
parent
e118430648
commit
5f484d200a
14 changed files with 211 additions and 189 deletions
|
@ -19,6 +19,10 @@ void WritableStreamDefaultController::visit_edges(Visitor& visitor)
|
|||
for (auto& value : m_queue)
|
||||
visitor.visit(value.value);
|
||||
visitor.visit(m_stream);
|
||||
visitor.visit(m_abort_algorithm);
|
||||
visitor.visit(m_close_algorithm);
|
||||
visitor.visit(m_strategy_size_algorithm);
|
||||
visitor.visit(m_write_algorithm);
|
||||
}
|
||||
|
||||
// https://streams.spec.whatwg.org/#ws-default-controller-error
|
||||
|
@ -39,7 +43,7 @@ WebIDL::ExceptionOr<void> WritableStreamDefaultController::error(JS::Value error
|
|||
WebIDL::ExceptionOr<JS::GCPtr<WebIDL::Promise>> WritableStreamDefaultController::abort_steps(JS::Value reason)
|
||||
{
|
||||
// 1. Let result be the result of performing this.[[abortAlgorithm]], passing reason.
|
||||
auto result = TRY((*m_abort_algorithm)(reason));
|
||||
auto result = TRY(m_abort_algorithm->function()(reason));
|
||||
|
||||
// 2. Perform ! WritableStreamDefaultControllerClearAlgorithms(this).
|
||||
writable_stream_default_controller_clear_algorithms(*this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue