1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:47:47 +00:00

LibWeb: Implement Web::FileAPI::Blob::array_buffer to spec

This commit is contained in:
Shannon Booth 2023-06-15 20:29:54 +12:00 committed by Andreas Kling
parent b0bc8f2282
commit 501b698385
2 changed files with 25 additions and 15 deletions

View file

@ -45,7 +45,7 @@ public:
WebIDL::ExceptionOr<JS::NonnullGCPtr<Streams::ReadableStream>> stream();
WebIDL::ExceptionOr<JS::NonnullGCPtr<JS::Promise>> text();
JS::Promise* array_buffer();
WebIDL::ExceptionOr<JS::NonnullGCPtr<JS::Promise>> array_buffer();
ReadonlyBytes bytes() const { return m_byte_buffer.bytes(); }