mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:47:35 +00:00
LibWeb: Make URLSearchParams iterable
This uses the new support for the iterable IDL property.
This commit is contained in:
parent
14e99b9b68
commit
01417c82c5
7 changed files with 101 additions and 2 deletions
|
@ -42,8 +42,11 @@ public:
|
|||
|
||||
String to_string();
|
||||
|
||||
void for_each(Function<IterationDecision(String const&, String const&)>);
|
||||
|
||||
private:
|
||||
friend class URL;
|
||||
friend class URLSearchParamsIterator;
|
||||
|
||||
explicit URLSearchParams(Vector<QueryParam> list)
|
||||
: m_list(move(list)) {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue