mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:57:45 +00:00
LibWeb: Fix inverted condition in WritableStream's constructor
This commit is contained in:
parent
bb9d51fd84
commit
d824d07784
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<WritableStream>> WritableStream::construct_
|
||||||
auto underlying_sink_dict = TRY(UnderlyingSink::from_value(vm, underlying_sink));
|
auto underlying_sink_dict = TRY(UnderlyingSink::from_value(vm, underlying_sink));
|
||||||
|
|
||||||
// 3. If underlyingSinkDict["type"] exists, throw a RangeError exception.
|
// 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 };
|
return WebIDL::SimpleException { WebIDL::SimpleExceptionType::RangeError, "Invalid use of reserved key 'type'"sv };
|
||||||
|
|
||||||
// 4. Perform ! InitializeWritableStream(this).
|
// 4. Perform ! InitializeWritableStream(this).
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue