LibWeb: Correct parameter name in Web::Streams::ReadableStream::cancel

This aligns with the name given in the implementation file and is a
better description of what is being passed in.
This commit is contained in:
Shannon Booth 2023-06-18 21:36:19 +12:00 committed by Andreas Kling
commit e1d71454eb
Notes: sideshowbarker 2024-07-17 05:03:11 +09:00

View file

@ -35,7 +35,7 @@ public:
virtual ~ReadableStream() override; virtual ~ReadableStream() override;
bool locked() const; bool locked() const;
WebIDL::ExceptionOr<JS::GCPtr<JS::Object>> cancel(JS::Value view); WebIDL::ExceptionOr<JS::GCPtr<JS::Object>> cancel(JS::Value reason);
WebIDL::ExceptionOr<ReadableStreamReader> get_reader(); WebIDL::ExceptionOr<ReadableStreamReader> get_reader();
Optional<ReadableStreamController>& controller() { return m_controller; } Optional<ReadableStreamController>& controller() { return m_controller; }