summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb
diff options
context:
space:
mode:
authorMatthew Olsson <matthewcolsson@gmail.com>2023-04-16 17:40:17 -0700
committerLinus Groh <mail@linusgroh.de>2023-04-17 10:27:40 +0200
commitd824d077844357b74cdf743d80955560b2022d8f (patch)
treec812c4868bbcb45bb372118f025066245c8e95e8 /Userland/Libraries/LibWeb
parentbb9d51fd8491e53899be6a458affdfac1315c706 (diff)
downloadserenity-d824d077844357b74cdf743d80955560b2022d8f.zip
LibWeb: Fix inverted condition in WritableStream's constructor
Diffstat (limited to 'Userland/Libraries/LibWeb')
-rw-r--r--Userland/Libraries/LibWeb/Streams/WritableStream.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Streams/WritableStream.cpp b/Userland/Libraries/LibWeb/Streams/WritableStream.cpp
index 83e385a222..76449faf7a 100644
--- a/Userland/Libraries/LibWeb/Streams/WritableStream.cpp
+++ b/Userland/Libraries/LibWeb/Streams/WritableStream.cpp
@@ -30,7 +30,7 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<WritableStream>> WritableStream::construct_
auto underlying_sink_dict = TRY(UnderlyingSink::from_value(vm, underlying_sink));
// 3. If underlyingSinkDict["type"] exists, throw a RangeError exception.
- if (!underlying_sink_dict.type.has_value())
+ if (underlying_sink_dict.type.has_value())
return WebIDL::SimpleException { WebIDL::SimpleExceptionType::RangeError, "Invalid use of reserved key 'type'"sv };
// 4. Perform ! InitializeWritableStream(this).