mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:17:35 +00:00
LibWeb: Use unsigned long long
for ReadableStreamBYOBRequest.respond
Now that the IDL generator supports this :^)
This commit is contained in:
parent
e54f272024
commit
99bf986889
3 changed files with 4 additions and 4 deletions
|
@ -39,7 +39,7 @@ void ReadableStreamBYOBRequest::visit_edges(Cell::Visitor& visitor)
|
|||
visitor.visit(m_view);
|
||||
}
|
||||
|
||||
WebIDL::ExceptionOr<void> ReadableStreamBYOBRequest::respond(u64 bytes_written)
|
||||
WebIDL::ExceptionOr<void> ReadableStreamBYOBRequest::respond(WebIDL::UnsignedLongLong bytes_written)
|
||||
{
|
||||
// 1. If this.[[controller]] is undefined, throw a TypeError exception.
|
||||
if (!m_controller)
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
#include <LibWeb/Bindings/PlatformObject.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
#include <LibWeb/Streams/ReadableByteStreamController.h>
|
||||
#include <LibWeb/WebIDL/Types.h>
|
||||
|
||||
namespace Web::Streams {
|
||||
|
||||
|
@ -28,7 +29,7 @@ public:
|
|||
|
||||
void set_view(JS::GCPtr<WebIDL::ArrayBufferView> value) { m_view = value; }
|
||||
|
||||
WebIDL::ExceptionOr<void> respond(u64 bytes_written);
|
||||
WebIDL::ExceptionOr<void> respond(WebIDL::UnsignedLongLong bytes_written);
|
||||
|
||||
private:
|
||||
explicit ReadableStreamBYOBRequest(JS::Realm&);
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
interface ReadableStreamBYOBRequest {
|
||||
readonly attribute ArrayBufferView? view;
|
||||
|
||||
// FIXME: Should be unsigned long long
|
||||
undefined respond([EnforceRange] unsigned long bytesWritten);
|
||||
undefined respond([EnforceRange] unsigned long long bytesWritten);
|
||||
// FIXME: undefined respondWithNewView(ArrayBufferView view);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue