LibWeb: Implement and wire up TransformStream's cancel callback

This commit is contained in:
Kenneth Myhra 2024-06-02 22:54:12 +02:00 committed by Tim Flynn
commit e70886595a
Notes: sideshowbarker 2024-07-17 04:09:56 +09:00
8 changed files with 80 additions and 9 deletions

View file

@ -22,6 +22,7 @@ JS::ThrowCompletionOr<Transformer> Transformer::from_value(JS::VM& vm, JS::Value
.start = TRY(property_to_callback(vm, value, "start", WebIDL::OperationReturnsPromise::No)),
.transform = TRY(property_to_callback(vm, value, "transform", WebIDL::OperationReturnsPromise::Yes)),
.flush = TRY(property_to_callback(vm, value, "flush", WebIDL::OperationReturnsPromise::Yes)),
.cancel = TRY(property_to_callback(vm, value, "cancel", WebIDL::OperationReturnsPromise::Yes)),
.readable_type = {},
.writable_type = {},
};