mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:27:43 +00:00
LibWeb/URL: Make URL::search_params() return a NonnullGCPtr
This commit is contained in:
parent
28cf8ba92e
commit
0a556ae26d
2 changed files with 2 additions and 2 deletions
|
@ -400,7 +400,7 @@ WebIDL::ExceptionOr<void> URL::set_search(String const& search)
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://url.spec.whatwg.org/#dom-url-searchparams
|
// https://url.spec.whatwg.org/#dom-url-searchparams
|
||||||
URLSearchParams const* URL::search_params() const
|
JS::NonnullGCPtr<URLSearchParams const> URL::search_params() const
|
||||||
{
|
{
|
||||||
// The searchParams getter steps are to return this’s query object.
|
// The searchParams getter steps are to return this’s query object.
|
||||||
return m_query;
|
return m_query;
|
||||||
|
|
|
@ -55,7 +55,7 @@ public:
|
||||||
WebIDL::ExceptionOr<String> search() const;
|
WebIDL::ExceptionOr<String> search() const;
|
||||||
WebIDL::ExceptionOr<void> set_search(String const&);
|
WebIDL::ExceptionOr<void> set_search(String const&);
|
||||||
|
|
||||||
URLSearchParams const* search_params() const;
|
JS::NonnullGCPtr<URLSearchParams const> search_params() const;
|
||||||
|
|
||||||
WebIDL::ExceptionOr<String> hash() const;
|
WebIDL::ExceptionOr<String> hash() const;
|
||||||
void set_hash(String const&);
|
void set_hash(String const&);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue