mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 18:50:50 +00:00
LibWeb: Add ReadableStreamDefaultReader::read_all_bytes_deprecated
This is not to the specification, but as the FIXME comment for the function states, we need it to be able to properly interface with the FileAPI spcification, which seems to have not been updated to the non promise based API.
This commit is contained in:
parent
3df10d7fb6
commit
b0bc8f2282
Notes:
sideshowbarker
2024-07-17 06:45:52 +09:00
Author: https://github.com/shannonbooth
Commit: b0bc8f2282
Pull-request: https://github.com/SerenityOS/serenity/pull/19404
Reviewed-by: https://github.com/kennethmyhra ✅
Reviewed-by: https://github.com/mattco98 ✅
2 changed files with 25 additions and 0 deletions
|
@ -68,6 +68,8 @@ public:
|
|||
WebIDL::ExceptionOr<JS::NonnullGCPtr<JS::Promise>> read();
|
||||
|
||||
WebIDL::ExceptionOr<void> read_all_bytes(ReadLoopReadRequest::SuccessSteps, ReadLoopReadRequest::FailureSteps);
|
||||
WebIDL::ExceptionOr<JS::NonnullGCPtr<WebIDL::Promise>> read_all_bytes_deprecated();
|
||||
|
||||
WebIDL::ExceptionOr<void> release_lock();
|
||||
|
||||
SinglyLinkedList<NonnullRefPtr<ReadRequest>>& read_requests() { return m_read_requests; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue