1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:47:35 +00:00

LibWeb: Make URLSearchParams iterable

This uses the new support for the iterable IDL property.
This commit is contained in:
Idan Horowitz 2021-09-28 02:11:55 +03:00 committed by Andreas Kling
parent 14e99b9b68
commit 01417c82c5
7 changed files with 101 additions and 2 deletions

View file

@ -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)) {};