LibWeb: Use doubles for Stream's high_water_mark and queue_total_size

This matches the IDL types
This commit is contained in:
Matthew Olsson 2023-04-22 10:44:07 -07:00 committed by Andreas Kling
commit dd65d60069
Notes: sideshowbarker 2024-07-17 01:13:25 +09:00
5 changed files with 17 additions and 17 deletions

View file

@ -22,7 +22,7 @@ ReadableStreamDefaultController::ReadableStreamDefaultController(JS::Realm& real
}
// https://streams.spec.whatwg.org/#rs-default-controller-desired-size
Optional<float> ReadableStreamDefaultController::desired_size()
Optional<double> ReadableStreamDefaultController::desired_size()
{
// 1. Return ! ReadableStreamDefaultControllerGetDesiredSize(this).
return readable_stream_default_controller_get_desired_size(*this);