summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Streams/UnderlyingSink.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibWeb/Streams/UnderlyingSink.cpp')
-rw-r--r--Userland/Libraries/LibWeb/Streams/UnderlyingSink.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibWeb/Streams/UnderlyingSink.cpp b/Userland/Libraries/LibWeb/Streams/UnderlyingSink.cpp
index ab12c8c55b..553b7a9861 100644
--- a/Userland/Libraries/LibWeb/Streams/UnderlyingSink.cpp
+++ b/Userland/Libraries/LibWeb/Streams/UnderlyingSink.cpp
@@ -19,10 +19,10 @@ JS::ThrowCompletionOr<UnderlyingSink> UnderlyingSink::from_value(JS::VM& vm, JS:
auto& object = value.as_object();
UnderlyingSink underlying_sink {
- .start = TRY(property_to_callback(vm, value, "start")),
- .write = TRY(property_to_callback(vm, value, "write")),
- .close = TRY(property_to_callback(vm, value, "close")),
- .abort = TRY(property_to_callback(vm, value, "abort")),
+ .start = TRY(property_to_callback(vm, value, "start", WebIDL::OperationReturnsPromise::No)),
+ .write = TRY(property_to_callback(vm, value, "write", WebIDL::OperationReturnsPromise::Yes)),
+ .close = TRY(property_to_callback(vm, value, "close", WebIDL::OperationReturnsPromise::Yes)),
+ .abort = TRY(property_to_callback(vm, value, "abort", WebIDL::OperationReturnsPromise::Yes)),
.type = {},
};