LibWeb: Add a couple ad-hoc BufferSource AOs

These helpers will be used by CompressionStream/DecompressionStream.
This commit is contained in:
Timothy Flynn 2024-11-15 14:47:27 -05:00 committed by Andreas Kling
commit c0da3e356a
Notes: github-actions[bot] 2024-11-17 22:22:07 +00:00
2 changed files with 23 additions and 0 deletions

View file

@ -17,6 +17,8 @@
namespace Web::WebIDL {
bool is_buffer_source_type(JS::Value);
GC::Ptr<JS::ArrayBuffer> underlying_buffer_source(JS::Object& buffer_source);
ErrorOr<ByteBuffer> get_buffer_source_copy(JS::Object const& buffer_source);
JS::Completion call_user_object_operation(WebIDL::CallbackType& callback, String const& operation_name, Optional<JS::Value> this_argument, GC::MarkedVector<JS::Value> args);