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

LibWeb: Use u64 for ReadableByteStream offsets instead of u32

These are specified in the IDL as "unsigned long long", which translates
to u64.
This commit is contained in:
Matthew Olsson 2023-04-18 20:05:06 -07:00 committed by Andreas Kling
parent 5fafd82927
commit 42fb847cc8
3 changed files with 12 additions and 12 deletions

View file

@ -36,7 +36,7 @@ JS::ThrowCompletionOr<UnderlyingSource> UnderlyingSource::from_value(JS::VM& vm,
}
if (TRY(object.has_property("autoAllocateChunkSize")))
underlying_source.auto_allocate_chunk_size = TRY(TRY(object.get("autoAllocateChunkSize")).to_bigint_int64(vm));
underlying_source.auto_allocate_chunk_size = TRY(TRY(object.get("autoAllocateChunkSize")).to_bigint_uint64(vm));
return underlying_source;
}